[Bf-blender-cvs] [843e0d1] object_nodes: Fix for use of TypeDesc.base_type as a plain value rather than a function call.

Lukas Tönne noreply at git.blender.org
Mon Feb 1 12:39:03 CET 2016


Commit: 843e0d1f3ac1724b83bd284a5303236155869ea5
Author: Lukas Tönne
Date:   Mon Feb 1 12:38:27 2016 +0100
Branches: object_nodes
https://developer.blender.org/rB843e0d1f3ac1724b83bd284a5303236155869ea5

Fix for use of TypeDesc.base_type as a plain value rather than a function call.

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

M	source/blender/blenvm/compile/bvm_typedesc.h

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

diff --git a/source/blender/blenvm/compile/bvm_typedesc.h b/source/blender/blenvm/compile/bvm_typedesc.h
index 10a24b3..ed34217 100644
--- a/source/blender/blenvm/compile/bvm_typedesc.h
+++ b/source/blender/blenvm/compile/bvm_typedesc.h
@@ -582,7 +582,7 @@ template <BVMType type>
 bool Value::get(array<type> *data) const
 {
 	if (m_typedesc.buffer_type() == BVM_BUFFER_ARRAY) {
-		switch (m_typedesc.base_type) {
+		switch (m_typedesc.base_type()) {
 			case BVM_FLOAT: return static_cast< const ArrayValue<BVM_FLOAT>* >(this)->get(data);
 			case BVM_FLOAT3: return static_cast< const ArrayValue<BVM_FLOAT3>* >(this)->get(data);
 			case BVM_FLOAT4: return static_cast< const ArrayValue<BVM_FLOAT4>* >(this)->get(data);




More information about the Bf-blender-cvs mailing list