[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [49297] trunk/blender/source/blender/ editors/space_node/node_edit.c: fix usercount error with dropping images in the node view.

Campbell Barton ideasman42 at gmail.com
Fri Jul 27 15:57:03 CEST 2012


Revision: 49297
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=49297
Author:   campbellbarton
Date:     2012-07-27 13:57:03 +0000 (Fri, 27 Jul 2012)
Log Message:
-----------
fix usercount error with dropping images in the node view.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_node/node_edit.c

Modified: trunk/blender/source/blender/editors/space_node/node_edit.c
===================================================================
--- trunk/blender/source/blender/editors/space_node/node_edit.c	2012-07-27 13:49:55 UTC (rev 49296)
+++ trunk/blender/source/blender/editors/space_node/node_edit.c	2012-07-27 13:57:03 UTC (rev 49297)
@@ -4311,7 +4311,7 @@
 		ima = BKE_image_load_exists(path);
 
 		if (!ima) {
-			BKE_reportf(op->reports, RPT_ERROR, "Can't read: \"%s\", %s", path, errno ? strerror(errno) : "Unsupported image format");
+			BKE_reportf(op->reports, RPT_ERROR, "Can't read image: \"%s\", %s", path, errno ? strerror(errno) : "Unsupported format");
 			return OPERATOR_CANCELLED;
 		}
 	}
@@ -4352,6 +4352,7 @@
 	}
 	
 	node->id = (ID *)ima;
+	id_us_plus(node->id);
 	
 	snode_notify(C, snode);
 	snode_dag_update(C, snode);




More information about the Bf-blender-cvs mailing list