mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 15:52:40 +08:00
remove hack (#3614)
This commit is contained in:
@@ -28,12 +28,12 @@ import CameraComponent from './camera-component';
|
||||
import AnimationComponent from './animation-component';
|
||||
import LightComponent from './light-component';
|
||||
import ModelComponent from './model-component';
|
||||
import SkinnedModelComponent from './skinning-model-component';
|
||||
import SkinningModelComponent from './skinning-model-component';
|
||||
import SkyboxComponent from './skybox-component';
|
||||
|
||||
cc.CameraComponent = CameraComponent;
|
||||
cc.AnimationComponent = AnimationComponent;
|
||||
cc.LightComponent = LightComponent;
|
||||
cc.ModelComponent = ModelComponent;
|
||||
cc.SkinnedModelComponent = SkinnedModelComponent;
|
||||
cc.SkinningModelComponent = SkinningModelComponent;
|
||||
cc.SkyboxComponent = SkyboxComponent;
|
||||
|
||||
@@ -275,13 +275,6 @@ export default class ModelComponent extends RenderableComponent {
|
||||
|
||||
_getBuiltinMaterial() {
|
||||
// classic ugly pink indicating missing material
|
||||
//return cc.BuiltinResMgr['default-material'];
|
||||
if (ModelComponent._m === null) {
|
||||
ModelComponent._m = new cc.Material();
|
||||
ModelComponent._m.effectName = 'builtin-effect-phong';
|
||||
}
|
||||
return ModelComponent._m;
|
||||
return cc.BuiltinResMgr['default-material'];
|
||||
}
|
||||
|
||||
static _m = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user