mirror of
https://github.com/Relintai/material-maker.git
synced 2024-11-13 06:27:18 +01:00
New cylindre model in the preview
Also modified the cube so all faces show the whole texture
This commit is contained in:
parent
100e2dffd1
commit
58f30c4276
File diff suppressed because one or more lines are too long
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user