[Bf-blender-cvs] [736a84ec662] blender2.8: Cleanup: Use proper type for original ID pointer

Sergey Sharybin noreply at git.blender.org
Mon Jun 4 14:14:18 CEST 2018


Commit: 736a84ec66286ddedee55baf3225009d824307d5
Author: Sergey Sharybin
Date:   Mon Jun 4 14:11:38 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB736a84ec66286ddedee55baf3225009d824307d5

Cleanup: Use proper type for original ID pointer

Helps debugging, no need to cast in a debugger.

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

M	source/blender/makesdna/DNA_ID.h

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

diff --git a/source/blender/makesdna/DNA_ID.h b/source/blender/makesdna/DNA_ID.h
index 6853f5048f1..05e39c6636a 100644
--- a/source/blender/makesdna/DNA_ID.h
+++ b/source/blender/makesdna/DNA_ID.h
@@ -229,7 +229,7 @@ typedef struct ID {
 	/* Only set for datablocks which are coming from copy-on-write, points to
 	 * the original version of it.
 	 */
-	void *orig_id;
+	struct ID *orig_id;
 
 	void *py_instance;
 } ID;



More information about the Bf-blender-cvs mailing list