Fix T38610: lattice U/V/W should not be animatable, is not supported.
This commit is contained in:
parent
f674e93375
commit
efc6735a8b
Notes:
blender-bot
2023-02-14 11:12:09 +01:00
Referenced by issue #38610, Lattice Object can have their UVW fields keyframed, but they are ignored.
|
@ -298,6 +298,7 @@ static void rna_def_lattice(BlenderRNA *brna)
|
|||
RNA_def_property_int_sdna(prop, NULL, "pntsu");
|
||||
RNA_def_property_int_funcs(prop, NULL, "rna_Lattice_points_u_set", NULL);
|
||||
RNA_def_property_range(prop, 1, 64);
|
||||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
|
||||
RNA_def_property_ui_text(prop, "U", "Point in U direction (can't be changed when there are shape keys)");
|
||||
RNA_def_property_update(prop, 0, "rna_Lattice_update_size");
|
||||
RNA_def_property_editable_func(prop, "rna_Lattice_size_editable");
|
||||
|
@ -306,6 +307,7 @@ static void rna_def_lattice(BlenderRNA *brna)
|
|||
RNA_def_property_int_sdna(prop, NULL, "pntsv");
|
||||
RNA_def_property_int_funcs(prop, NULL, "rna_Lattice_points_v_set", NULL);
|
||||
RNA_def_property_range(prop, 1, 64);
|
||||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
|
||||
RNA_def_property_ui_text(prop, "V", "Point in V direction (can't be changed when there are shape keys)");
|
||||
RNA_def_property_update(prop, 0, "rna_Lattice_update_size");
|
||||
RNA_def_property_editable_func(prop, "rna_Lattice_size_editable");
|
||||
|
@ -314,6 +316,7 @@ static void rna_def_lattice(BlenderRNA *brna)
|
|||
RNA_def_property_int_sdna(prop, NULL, "pntsw");
|
||||
RNA_def_property_int_funcs(prop, NULL, "rna_Lattice_points_w_set", NULL);
|
||||
RNA_def_property_range(prop, 1, 64);
|
||||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
|
||||
RNA_def_property_ui_text(prop, "W", "Point in W direction (can't be changed when there are shape keys)");
|
||||
RNA_def_property_update(prop, 0, "rna_Lattice_update_size");
|
||||
RNA_def_property_editable_func(prop, "rna_Lattice_size_editable");
|
||||
|
|
Loading…
Reference in New Issue