Fix T79743: baking still uses cage object after removal
This commit is contained in:
@@ -1598,9 +1598,8 @@ static void bake_set_props(wmOperator *op, Scene *scene)
|
||||
|
||||
prop = RNA_struct_find_property(op->ptr, "cage_object");
|
||||
if (!RNA_property_is_set(op->ptr, prop)) {
|
||||
if (bake->cage_object) {
|
||||
RNA_property_string_set(op->ptr, prop, bake->cage_object->id.name + 2);
|
||||
}
|
||||
RNA_property_string_set(
|
||||
op->ptr, prop, (bake->cage_object) ? bake->cage_object->id.name + 2 : "");
|
||||
}
|
||||
|
||||
prop = RNA_struct_find_property(op->ptr, "normal_space");
|
||||
|
||||
Reference in New Issue
Block a user