New cylindre model in the preview

Also modified the cube so all faces show the whole texture
This commit is contained in:
RodZill4 2018-07-29 19:19:35 +02:00
parent 100e2dffd1
commit 58f30c4276
2 changed files with 142 additions and 49 deletions

File diff suppressed because one or more lines are too long

View File

@ -27,3 +27,8 @@ func _on_SelectedPreview_gui_input(ev):
func _on_Environment_item_selected(id): func _on_Environment_item_selected(id):
$MaterialPreview/WorldEnvironment.environment.background_sky.panorama = load("res://addons/procedural_material/panoramas/"+ENVIRONMENTS[id]+".hdr") $MaterialPreview/WorldEnvironment.environment.background_sky.panorama = load("res://addons/procedural_material/panoramas/"+ENVIRONMENTS[id]+".hdr")
func _on_Model_item_selected(id):
var model = $Model.get_item_text(id)
for c in $MaterialPreview/Objects.get_children():
c.visible = (c.get_name() == model)