diff options
author | Hans Goudey <h.goudey@me.com> | 2020-12-15 00:12:18 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2020-12-15 00:12:18 +0300 |
commit | 20bc1ab27578f1eec4962d0476de8380fed3e35a (patch) | |
tree | 4b3e255ae985eca6bf094424872c170b36d69ebb | |
parent | 49ec3cef69bf183b488b680b7ab98105ce8acdd0 (diff) |
Fix incorrect RNA type warning
Using the RNA type for regular modifiers instead of grease pencil
modifiers caused a warning in context.c.
-rw-r--r-- | source/blender/editors/object/object_gpencil_modifier.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/object/object_gpencil_modifier.c b/source/blender/editors/object/object_gpencil_modifier.c index 9ea67df6daf..e5feb74df26 100644 --- a/source/blender/editors/object/object_gpencil_modifier.c +++ b/source/blender/editors/object/object_gpencil_modifier.c @@ -461,7 +461,7 @@ static bool gpencil_edit_modifier_poll(bContext *C) * (not only from added 'local' ones). */ static bool gpencil_edit_modifier_liboverride_allowed_poll(bContext *C) { - return gpencil_edit_modifier_poll_generic(C, &RNA_Modifier, 0, true); + return gpencil_edit_modifier_poll_generic(C, &RNA_GpencilModifier, 0, true); } static void gpencil_edit_modifier_properties(wmOperatorType *ot) |