Fix T66565: crash linking unused light datablock during Cycles preview render

This commit is contained in:
Brecht Van Lommel 2019-07-09 19:48:38 +02:00
parent 23f1bc7414
commit 29ebb37419
Notes: blender-bot 2023-02-14 01:57:12 +01:00
Referenced by issue #66565, Linking an unused Light datablock to an existing light object crashes Blender.
1 changed files with 1 additions and 1 deletions

View File

@ -2358,7 +2358,7 @@ static void rna_def_object(BlenderRNA *brna)
RNA_def_property_flag(prop, PROP_EDITABLE | PROP_NEVER_UNLINK);
RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY);
RNA_def_property_ui_text(prop, "Data", "Object data");
RNA_def_property_update(prop, 0, "rna_Object_internal_update_data");
RNA_def_property_update(prop, 0, "rna_Object_internal_update_data_dependency");
prop = RNA_def_property(srna, "type", PROP_ENUM, PROP_NONE);
RNA_def_property_enum_sdna(prop, NULL, "type");