[Bf-blender-cvs] [8f56cebe720] master: Fix BGE sound actuator property access

Campbell Barton noreply at git.blender.org
Sat Nov 18 07:17:12 CET 2017


Commit: 8f56cebe72098c49095860f1efc4f635dbf83b8c
Author: Campbell Barton
Date:   Sat Nov 18 17:16:25 2017 +1100
Branches: master
https://developer.blender.org/rB8f56cebe72098c49095860f1efc4f635dbf83b8c

Fix BGE sound actuator property access

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

M	source/gameengine/Ketsji/KX_SoundActuator.cpp

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

diff --git a/source/gameengine/Ketsji/KX_SoundActuator.cpp b/source/gameengine/Ketsji/KX_SoundActuator.cpp
index d858097abef..64aab31ba22 100644
--- a/source/gameengine/Ketsji/KX_SoundActuator.cpp
+++ b/source/gameengine/Ketsji/KX_SoundActuator.cpp
@@ -488,7 +488,7 @@ int KX_SoundActuator::pyattr_set_3d_property(void *self, const struct KX_PYATTRI
 		if (actuator->m_handle)
 			AUD_Handle_setAttenuation(actuator->m_handle, prop_value);
 
-	} else if (!!strcmp(prop, "cone_angle_inner")) {
+	} else if (!strcmp(prop, "cone_angle_inner")) {
 		actuator->m_3d.cone_inner_angle = prop_value;
 		if (actuator->m_handle)
 			AUD_Handle_setConeAngleInner(actuator->m_handle, prop_value);



More information about the Bf-blender-cvs mailing list