Horde3D
http://horde3d.org/forums/

[solved] ModelNode::getParam
http://horde3d.org/forums/viewtopic.php?f=3&t=51
Page 1 of 1

Author:  DarkAngel [ 13.02.2007, 09:02 ]
Post subject:  [solved] ModelNode::getParam

You might have already fixed this, but I noticed this bug today in ModelNode::getParam :)

This is the broken line of code:
Code:
if( param == SceneNodeParams::BaseResource ) (float)_geometryRes;

A "return" is missing:
Code:
if( param == SceneNodeParams::BaseResource ) return (float)_geometryRes;

Author:  marciano [ 14.02.2007, 21:44 ]
Post subject: 

Thanks for reporting this bug.
The problem will be no longer in the next version since the interface has changed a bit so that there is no global node params enum any more but one for each node type. This gives more flexibility and makes it easier to use the engine since only params that are really availbale for the desired node type can be used.

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/