Scripting: Fix cut&paste typo 09/20309/1
authorJavon Prince <javon.prince@samsung.com>
Fri, 25 Apr 2014 14:35:57 +0000 (15:35 +0100)
committerDavid Steele <david.steele@partner.samsung.com>
Thu, 1 May 2014 15:01:35 +0000 (16:01 +0100)
Change-Id: I940c6d4a6164e8b4c82277a1e4c5e49fccca0b87
Signed-off-by: Javon Prince <javon.prince@samsung.com>
dali-toolkit/internal/builder/builder-set-property.cpp

index 285bd7b..e02467a 100644 (file)
@@ -254,8 +254,8 @@ bool SetPropertyFromNode( const TreeNode& node, Property::Type type, Property::V
         if( r && g && b )
         {
           float red( (*r) * (1.0f/255.0f) );
         if( r && g && b )
         {
           float red( (*r) * (1.0f/255.0f) );
-          float green( (*r) * (1.0f/255.0f) );
-          float blue( (*r) * (1.0f/255.0f) );
+          float green( (*g) * (1.0f/255.0f) );
+          float blue( (*b) * (1.0f/255.0f) );
           // check for optional "a" (alpha) node, default to fully opaque if it is not found.
           float alpha( 1.0f );
           OptionalInteger a = replacer.IsInteger( IsChild(node, "a") );
           // check for optional "a" (alpha) node, default to fully opaque if it is not found.
           float alpha( 1.0f );
           OptionalInteger a = replacer.IsInteger( IsChild(node, "a") );