-
Notifications
You must be signed in to change notification settings - Fork 73
[ENG-8627] | Fix .3ds files not rendering in MFR viewer #404
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
base: feature/buff-worms
Are you sure you want to change the base?
[ENG-8627] | Fix .3ds files not rendering in MFR viewer #404
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, a few minor remarks regarding codestyle
var materialFaces = this._cur_obj.materialFaces || {}; | ||
var sawMaterial = false; | ||
for (var materialName in materialFaces) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: It's better to use let instead of var
|
||
var currentMaterial = this._materials[materialName]; | ||
if (!currentMaterial) { | ||
if (JSC3D.console) JSC3D.console.logWarning('3DS: missing material "' + materialName + '", using defaults.'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please don't use oneline if statements
if (JSC3D.console) JSC3D.console.logWarning('3DS: missing material "' + materialName + '", using defaults.'); | |
if (JSC3D.console) { | |
JSC3D.console.logWarning('3DS: missing material "' + materialName + '", using defaults.'); | |
} |
Ticket
Purpose
Changes
Side effects
QA Notes
Deployment Notes