[Bf-blender-cvs] [4803466c011] mesh-to-volume-modifier: only allow mesh objects for now
Jacques Lucke
noreply at git.blender.org
Mon Sep 28 13:31:37 CEST 2020
Commit: 4803466c01193521f6016d7e31b248a86eb8bda5
Author: Jacques Lucke
Date: Mon Sep 28 13:31:15 2020 +0200
Branches: mesh-to-volume-modifier
https://developer.blender.org/rB4803466c01193521f6016d7e31b248a86eb8bda5
only allow mesh objects for now
===================================================================
M source/blender/makesrna/intern/rna_modifier.c
===================================================================
diff --git a/source/blender/makesrna/intern/rna_modifier.c b/source/blender/makesrna/intern/rna_modifier.c
index d1667b429a3..29447432ffb 100644
--- a/source/blender/makesrna/intern/rna_modifier.c
+++ b/source/blender/makesrna/intern/rna_modifier.c
@@ -7007,6 +7007,7 @@ static void rna_def_modifier_mesh_to_volume(BlenderRNA *brna)
prop = RNA_def_property(srna, "object", PROP_POINTER, PROP_NONE);
RNA_def_property_ui_text(prop, "Object", "Object");
RNA_def_property_flag(prop, PROP_EDITABLE | PROP_ID_SELF_CHECK);
+ RNA_def_property_pointer_funcs(prop, NULL, NULL, NULL, "rna_Mesh_object_poll");
RNA_def_property_update(prop, 0, "rna_Modifier_dependency_update");
prop = RNA_def_property(srna, "resolution_mode", PROP_ENUM, PROP_NONE);
More information about the Bf-blender-cvs
mailing list