Commit: 5e79ebce13a6c49201422cc4e9bcc19a1369a675
Author: Dalai Felinto
Date:   Wed Dec 21 18:39:05 2016 +0100
Branches: render-layers
https://developer.blender.org/rB5e79ebce13a6c49201422cc4e9bcc19a1369a675

Fixup for rna_SceneCollection_remove

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

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

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

diff --git a/source/blender/makesrna/intern/rna_scene.c 
b/source/blender/makesrna/intern/rna_scene.c
index 30ef07a..1ee7191 100644
--- a/source/blender/makesrna/intern/rna_scene.c
+++ b/source/blender/makesrna/intern/rna_scene.c
@@ -2169,7 +2169,7 @@ static void rna_SceneCollection_remove(
        SceneCollection *sc = sc_ptr->data;
 
        const int index = BLI_findindex(&sc_parent->scene_collections, sc);
-       if (index != -1) {
+       if (index == -1) {
                BKE_reportf(reports, RPT_ERROR, "Collection '%s' is not a 
sub-collection of '%s'",
                            sc->name, sc_parent->name);
                return;

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to