[Bf-blender-cvs] [309ee7d9266] greasepencil-object: GPencil: Fix wrong variable for props

Antonio Vazquez noreply at git.blender.org
Thu May 6 20:00:02 CEST 2021


Commit: 309ee7d92662aece7ec5b8e2c18eec1bd56e7037
Author: Antonio Vazquez
Date:   Thu May 6 19:59:58 2021 +0200
Branches: greasepencil-object
https://developer.blender.org/rB309ee7d92662aece7ec5b8e2c18eec1bd56e7037

GPencil: Fix wrong variable for props

===================================================================

M	source/blender/editors/gpencil/gpencil_data.c

===================================================================

diff --git a/source/blender/editors/gpencil/gpencil_data.c b/source/blender/editors/gpencil/gpencil_data.c
index 91b11985823..4a47ed99c1a 100644
--- a/source/blender/editors/gpencil/gpencil_data.c
+++ b/source/blender/editors/gpencil/gpencil_data.c
@@ -664,7 +664,7 @@ void GPENCIL_OT_layer_duplicate_object(wmOperatorType *ot)
                          true,
                          "Only Active",
                          "Append only active Layer, uncheck to append all layers");
-  RNA_def_property_flag(ot->prop, PROP_HIDDEN | PROP_SKIP_SAVE);
+  RNA_def_property_flag(prop, PROP_HIDDEN | PROP_SKIP_SAVE);
 }
 
 /* ********************* Duplicate Frame ************************** */
@@ -3695,7 +3695,7 @@ void GPENCIL_OT_materials_append_to_object(wmOperatorType *ot)
                          true,
                          "Only Selected",
                          "Append only selected material, uncheck to append all materials");
-  RNA_def_property_flag(ot->prop, PROP_HIDDEN | PROP_SKIP_SAVE);
+  RNA_def_property_flag(prop, PROP_HIDDEN | PROP_SKIP_SAVE);
 }
 
 /* Parent GPencil object to Lattice */



More information about the Bf-blender-cvs mailing list