Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

small SceneReader/writer updates, + a branch in SceneProcedural that renders VisibleRenderables #71

Merged
merged 6 commits into from
Apr 1, 2013

Conversation

davidsminor
Copy link
Contributor

Framerate stuff in SceneReader/Writer... Maybe I should just push small things like this? Thought I'd make a pull request anyway for practice...

…ard coded framerate. Also removed the SceneReader::cache() in favor of IECore::SharedSceneInterfaces, and made the reader ignore a couple of attributes automatically written by the SceneCache, to fix a test failure
@@ -51,6 +51,8 @@ class SceneReader : public FileSource
virtual ~SceneReader();

IE_CORE_DECLARERUNTIMETYPEDEXTENSION( SceneReader, SceneReaderTypeId, FileSource )

static const double s_frameRate;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is a temporary thing until we get fps/time stored in the context, it shouldn't be public - that just encourages other code to become reliant upon it. Can you just make it a static variable defined in SceneReader.cpp please? If you need to access it from SceneWriter.cpp too then just declare it again there - I'd rather the evil of duplicating that definition than the evil of introducing public fields we can't support going forwards...

Also note that we prefix statics with g_ and not s_.

{
renderable->render( renderer );
break; // no motion blur for these chappies.
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems totally unrelated to the rest of this pull request - in the future we should make sure we deal with individual topics separately.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup - looks like this was a stowaway...

@davidsminor
Copy link
Contributor Author

voila - changed the static var names, made them private, and tweaked that test...

johnhaddon added a commit that referenced this pull request Apr 1, 2013
small SceneReader/writer updates, + a branch in SceneProcedural that renders VisibleRenderables
@johnhaddon johnhaddon merged commit d33f536 into GafferHQ:master Apr 1, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants