index-of-nearest-104619 #2

Merged
Iliya Katushenock merged 62 commits from HooglyBoogly/blender:index-of-nearest-104619 into index_of_nearest 2023-04-20 21:19:53 +02:00
Showing only changes of commit 60ced5283a - Show all commits

View File

@ -157,6 +157,7 @@ static void rna_def_animviz_motion_path(BlenderRNA *brna)
RNA_def_property_array(prop, 3); RNA_def_property_array(prop, 3);
RNA_def_property_ui_text(prop, "Color", "Custom color for motion path"); RNA_def_property_ui_text(prop, "Color", "Custom color for motion path");
RNA_def_property_update(prop, NC_OBJECT | ND_DRAW_ANIMVIZ, NULL); RNA_def_property_update(prop, NC_OBJECT | ND_DRAW_ANIMVIZ, NULL);
RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY);
/* Line width */ /* Line width */
prop = RNA_def_property(srna, "line_thickness", PROP_INT, PROP_NONE); prop = RNA_def_property(srna, "line_thickness", PROP_INT, PROP_NONE);
@ -164,6 +165,7 @@ static void rna_def_animviz_motion_path(BlenderRNA *brna)
RNA_def_property_range(prop, 1, 6); RNA_def_property_range(prop, 1, 6);
RNA_def_property_ui_text(prop, "Line Thickness", "Line thickness for motion path"); RNA_def_property_ui_text(prop, "Line Thickness", "Line thickness for motion path");
RNA_def_property_update(prop, NC_OBJECT | ND_DRAW_ANIMVIZ, NULL); RNA_def_property_update(prop, NC_OBJECT | ND_DRAW_ANIMVIZ, NULL);
RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY);
/* Settings */ /* Settings */
prop = RNA_def_property(srna, "use_bone_head", PROP_BOOLEAN, PROP_NONE); prop = RNA_def_property(srna, "use_bone_head", PROP_BOOLEAN, PROP_NONE);
@ -184,6 +186,7 @@ static void rna_def_animviz_motion_path(BlenderRNA *brna)
RNA_def_property_boolean_sdna(prop, NULL, "flag", MOTIONPATH_FLAG_CUSTOM); RNA_def_property_boolean_sdna(prop, NULL, "flag", MOTIONPATH_FLAG_CUSTOM);
RNA_def_property_ui_text(prop, "Custom Colors", "Use custom color for this motion path"); RNA_def_property_ui_text(prop, "Custom Colors", "Use custom color for this motion path");
RNA_def_property_update(prop, NC_OBJECT | ND_DRAW_ANIMVIZ, NULL); RNA_def_property_update(prop, NC_OBJECT | ND_DRAW_ANIMVIZ, NULL);
RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY);
/* Draw lines between keyframes */ /* Draw lines between keyframes */
prop = RNA_def_property(srna, "lines", PROP_BOOLEAN, PROP_NONE); prop = RNA_def_property(srna, "lines", PROP_BOOLEAN, PROP_NONE);