timoore aeaaa50f6c Fix material animations with only a <texture-prop>
On 8/31/07, K. Hoercher <wbhoer@gmail.com> wrote:
> > Some notes:
> > - I found that in order to make the example from model-howto.html work
> > ( starting at "To make a texture replaceable at runtime") one has to
> > specify a valid (i.e. loadable) <texture>  in the material animation.

The cause seems to be the condition in SGMaterialAnimation.cxx l.277
ignoring any texture update by the UpdateCallback (only there
<texture-prop> is looked at)  without an already existing stateSet.
That in turn will not be created with a <texture-prop> alone l. 379ff.

Unless I overlooked some compelling reason contradicting, I'd like to
suggest allowing for a stateSet to be created for those situations
too. I think that would match the behaviour of animation.cxx
(PRE_OSG_PLIB_20061029) and is imho the more expected and also
documented one.
2007-09-05 22:12:00 +00:00
2007-08-12 13:40:16 +00:00
2004-04-04 14:24:06 +00:00
2005-02-15 18:13:15 +00:00
2006-02-17 08:58:56 +00:00
2000-02-09 19:27:02 +00:00
2006-03-20 19:22:20 +00:00
2003-06-11 18:55:36 +00:00
2006-04-05 18:42:45 +00:00
2001-12-17 16:52:20 +00:00
2007-01-06 14:45:21 +00:00
2006-03-20 19:22:20 +00:00
2000-03-29 00:00:46 +00:00
2007-07-23 22:00:31 +00:00
2002-09-07 02:58:19 +00:00

[ Nothing here at this time. ]
Description
No description provided
Readme 14 MiB
Languages
C++ 85.5%
C 13.1%
CMake 1.4%