Fix initial value for matrix property registration 53/52853/1
authorNick Holland <nick.holland@partner.samsung.com>
Thu, 26 Nov 2015 15:36:12 +0000 (15:36 +0000)
committerNick Holland <nick.holland@partner.samsung.com>
Thu, 26 Nov 2015 15:39:29 +0000 (15:39 +0000)
Currently the full contents of imat is not set to the
viewMatrix property.

var imat = [1,0,0,0,
   0,1,0,0,
           0,0,1,0,
           0,0,0,1];
shader.registerAnimatableProperty('viewMatrix', imat);

Change-Id: I25c76b0dc34e5238316b1bc571d8c8cc4ce8cedc

plugins/dali-script-v8/src/object/property-value-wrapper.cpp

index b9d7b4c..a7e2998 100644 (file)
@@ -562,7 +562,7 @@ Dali::Property::Value PropertyValueWrapper::VectorOrMatrixFromV8Array( v8::Isola
   }
   if(16 == len )
   {
-    ret = Dali::Matrix( out[0] );
+    ret = Dali::Matrix( out );
   }
   else if ( 9 == len )
   {