Fix missing ShaderFx pointer to TreeElementGPencilEffect constructor
Fix the crash that 1f722a6d01 causes when opening files with GPv3 objects.
Pull Request: https://projects.blender.org/blender/blender/pulls/110585
This commit is contained in:
committed by
Julian Eisel
parent
3f8416a1b2
commit
d9de0a4725
@@ -31,8 +31,14 @@ void TreeElementGPencilEffectBase::expand(SpaceOutliner &space_outliner) const
|
||||
{
|
||||
int index;
|
||||
LISTBASE_FOREACH_INDEX (ShaderFxData *, fx, &object_.shader_fx, index) {
|
||||
outliner_add_element(
|
||||
&space_outliner, &legacy_te_.subtree, &object_, &legacy_te_, TSE_GPENCIL_EFFECT, index);
|
||||
GPencilEffectElementCreateData gp_effect_data = {&object_, fx};
|
||||
|
||||
outliner_add_element(&space_outliner,
|
||||
&legacy_te_.subtree,
|
||||
&gp_effect_data,
|
||||
&legacy_te_,
|
||||
TSE_GPENCIL_EFFECT,
|
||||
index);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user