Fix #131194: Crash with animated geometry nodes math node operation

The animation system can't properly update the node tree to regenerate
all the necessary information when changing the operation. The operation
changing with animation also invalidates some assumptions we make to
improve performance, and the complexity of supporting it isn't worth
the questionable utility.

Similar to 7797fcc3c9 and dc9249c97f.

Pull Request: https://projects.blender.org/blender/blender/pulls/131252
This commit is contained in:
Hans Goudey
2024-12-02 18:42:52 +01:00
committed by Hans Goudey
parent 914e824900
commit b5a2858fab

View File

@@ -4634,6 +4634,7 @@ static void def_math(StructRNA *srna)
RNA_def_property_ui_text(prop, "Operation", "");
RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_NODETREE);
RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_ShaderNode_socket_update");
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
prop = RNA_def_property(srna, "use_clamp", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, nullptr, "custom2", SHD_MATH_CLAMP);
@@ -4706,6 +4707,7 @@ static void def_vector_math(StructRNA *srna)
RNA_def_property_ui_text(prop, "Operation", "");
RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_NODETREE);
RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_ShaderNode_socket_update");
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
}
static void def_rgb_curve(StructRNA *srna)