Skip to content

Use Material param if it is defined#128

Merged
rctoris merged 1 commit intoRobotWebTools:developfrom
DLu:mesh_color
Sep 8, 2015
Merged

Use Material param if it is defined#128
rctoris merged 1 commit intoRobotWebTools:developfrom
DLu:mesh_color

Conversation

@DLu
Copy link
Contributor

@DLu DLu commented Sep 7, 2015

Fix for #112

Previous logic: If the mesh has a defined material, use it instead of anything else. Only use the new material parameter if the material is undefined.

New logic: Use the parameter if it is defined. This relegates the decision to the creator of the MeshResource. The URDF will only pass in a valid parameter if the tag is defined in the XML. The Marker will only pass in the parameter if it is set to a non-zero value.

rctoris added a commit that referenced this pull request Sep 8, 2015
Use Material param if it is defined
@rctoris rctoris merged commit 4c479ac into RobotWebTools:develop Sep 8, 2015
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