[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [58289] branches/soc-2013-cycles_mblur/ intern/cycles: Created the new AttributeStandard ATTR_STD_MOTION and added it to a few

Gavin Howard gavin.d.howard at gmail.com
Mon Jul 15 23:44:10 CEST 2013


Revision: 58289
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=58289
Author:   gdh
Date:     2013-07-15 21:44:10 +0000 (Mon, 15 Jul 2013)
Log Message:
-----------
Created the new AttributeStandard ATTR_STD_MOTION and added it to a few 
basic functions in the Attribute line of classes.

Modified Paths:
--------------
    branches/soc-2013-cycles_mblur/intern/cycles/kernel/kernel_types.h
    branches/soc-2013-cycles_mblur/intern/cycles/render/attribute.cpp

Modified: branches/soc-2013-cycles_mblur/intern/cycles/kernel/kernel_types.h
===================================================================
--- branches/soc-2013-cycles_mblur/intern/cycles/kernel/kernel_types.h	2013-07-15 21:42:51 UTC (rev 58288)
+++ branches/soc-2013-cycles_mblur/intern/cycles/kernel/kernel_types.h	2013-07-15 21:44:10 UTC (rev 58289)
@@ -425,6 +425,7 @@
 	ATTR_STD_GENERATED,
 	ATTR_STD_POSITION_UNDEFORMED,
 	ATTR_STD_POSITION_UNDISPLACED,
+	ATTR_STD_MOTION,
 	ATTR_STD_MOTION_PRE,
 	ATTR_STD_MOTION_POST,
 	ATTR_STD_PARTICLE,

Modified: branches/soc-2013-cycles_mblur/intern/cycles/render/attribute.cpp
===================================================================
--- branches/soc-2013-cycles_mblur/intern/cycles/render/attribute.cpp	2013-07-15 21:42:51 UTC (rev 58288)
+++ branches/soc-2013-cycles_mblur/intern/cycles/render/attribute.cpp	2013-07-15 21:44:10 UTC (rev 58289)
@@ -141,6 +141,8 @@
 		return "undeformed";
 	else if(std == ATTR_STD_POSITION_UNDISPLACED)
 		return "undisplaced";
+	else if(std == ATTR_STD_MOTION)
+		return "motion";
 	else if(std == ATTR_STD_MOTION_PRE)
 		return "motion_pre";
 	else if(std == ATTR_STD_MOTION_POST)
@@ -252,6 +254,9 @@
 			case ATTR_STD_POSITION_UNDISPLACED:
 				attr = add(name, TypeDesc::TypePoint, ATTR_ELEMENT_VERTEX);
 				break;
+			case ATTR_STD_MOTION:
+				attr = add(name, TypeDesc::TypePoint, ATTR_ELEMENT_VERTEX_BLOCK);
+				break;
 			case ATTR_STD_MOTION_PRE:
 				attr = add(name, TypeDesc::TypePoint, ATTR_ELEMENT_VERTEX);
 				break;




More information about the Bf-blender-cvs mailing list