[Bf-blender-cvs] [3f9d904] soc-2016-layer_manager: Correction to previous commit

Julian Eisel noreply at git.blender.org
Thu Jun 30 02:47:22 CEST 2016


Commit: 3f9d904f91491cb72b5b082afadd1f06a85fe154
Author: Julian Eisel
Date:   Thu Jun 30 02:47:01 2016 +0200
Branches: soc-2016-layer_manager
https://developer.blender.org/rB3f9d904f91491cb72b5b082afadd1f06a85fe154

Correction to previous commit

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

M	source/blender/blenkernel/intern/layer.c

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

diff --git a/source/blender/blenkernel/intern/layer.c b/source/blender/blenkernel/intern/layer.c
index b6f5ed5..5cc8e49 100644
--- a/source/blender/blenkernel/intern/layer.c
+++ b/source/blender/blenkernel/intern/layer.c
@@ -280,6 +280,7 @@ static bool layeritem_move_array(LayerTreeItem *litem, const int newidx)
 	const bool is_higher = litem->index < newidx;
 
 	BLI_assert(litem->tree->tot_items > newidx);
+	/* Already where we want to move it to. */
 	if (litem->index == newidx)
 		return false;
 
@@ -305,8 +306,6 @@ static bool layeritem_move_array(LayerTreeItem *litem, const int newidx)
  */
 void BKE_layeritem_move(LayerTreeItem *litem, const int newidx)
 {
-	/* Already where we want to move it to. */
-
 	/* move in array (return if failed) */
 	if (!layeritem_move_array(litem, newidx)) {
 		return;




More information about the Bf-blender-cvs mailing list