[Bf-blender-cvs] [91d611b7cbc] master: Cleanup: remove deprecated grease pencil object property.

Brecht Van Lommel noreply at git.blender.org
Sun Apr 14 20:26:54 CEST 2019


Commit: 91d611b7cbc8ef4d1d98cef2f2913783f602669e
Author: Brecht Van Lommel
Date:   Sun Apr 14 19:08:19 2019 +0200
Branches: master
https://developer.blender.org/rB91d611b7cbc8ef4d1d98cef2f2913783f602669e

Cleanup: remove deprecated grease pencil object property.

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

M	source/blender/makesrna/intern/rna_object.c

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

diff --git a/source/blender/makesrna/intern/rna_object.c b/source/blender/makesrna/intern/rna_object.c
index 2d0afcd66f1..c8feff4c0e8 100644
--- a/source/blender/makesrna/intern/rna_object.c
+++ b/source/blender/makesrna/intern/rna_object.c
@@ -2699,17 +2699,6 @@ static void rna_def_object(BlenderRNA *brna)
 	                         "Make the object draw in front of others");
 	RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, NULL);
 
-	/* Grease Pencil */
-#if 1 /* FIXME: Remove this code when all Open-Movie assets have been fixed */
-	prop = RNA_def_property(srna, "grease_pencil", PROP_POINTER, PROP_NONE);
-	RNA_def_property_pointer_sdna(prop, NULL, "gpd");
-	RNA_def_property_struct_type(prop, "GreasePencil");
-	RNA_def_property_pointer_funcs(prop, NULL, NULL, NULL, "rna_GPencil_datablocks_obdata_poll"); /* XXX */
-	RNA_def_property_flag(prop, PROP_EDITABLE | PROP_ID_REFCOUNT);
-	RNA_def_property_ui_text(prop, "Grease Pencil Data", "Grease Pencil data-block (deprecated)");
-	RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, NULL);
-#endif
-
 	/* pose */
 	prop = RNA_def_property(srna, "pose_library", PROP_POINTER, PROP_NONE);
 	RNA_def_property_pointer_sdna(prop, NULL, "poselib");



More information about the Bf-blender-cvs mailing list