mirror of
https://github.com/blender/blender
synced 2026-09-26 16:15:47 +03:00
Merge branch 'blender-v4.1-release'
This commit is contained in:
commit
6dc1cffe33
2 changed files with 15 additions and 0 deletions
|
|
@ -3952,6 +3952,19 @@ bool IMB_colormanagement_processor_is_noop(ColormanageProcessor *cm_processor)
|
|||
return false;
|
||||
}
|
||||
|
||||
if (!cm_processor->cpu_processor) {
|
||||
/* The CPU processor might have failed to be created, for example when the requested color
|
||||
* space does not exist in the configuration, or if there is a missing lookup table, or the
|
||||
* configuration is invalid due to other reasons.
|
||||
*
|
||||
* The actual processing checks for the cpu_processor not being null pointer, and it if is then
|
||||
* processing does not apply it. However, processing could still apply curve mapping.
|
||||
*
|
||||
* Hence a null-pointer here, which happens after the curve mapping check, but before accessing
|
||||
* cpu_processor. */
|
||||
return true;
|
||||
}
|
||||
|
||||
return OCIO_cpuProcessorIsNoOp(cm_processor->cpu_processor);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -158,6 +158,8 @@ void USDPointInstancerReader::read_object_data(Main *bmain, const double motionS
|
|||
|
||||
ModifierData *md = BKE_modifier_new(eModifierType_Nodes);
|
||||
BLI_addtail(&object_->modifiers, md);
|
||||
BKE_modifiers_persistent_uid_init(*object_, *md);
|
||||
|
||||
NodesModifierData &nmd = *reinterpret_cast<NodesModifierData *>(md);
|
||||
nmd.node_group = ntreeAddTree(bmain, "Instances", "GeometryNodeTree");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue