Texture refactor
-Texture renamed to Texture2D -TextureLayered as base now inherits 2Darray, cubemap and cubemap array -Removed all references to flags in textures (they will go in the shader) -Texture3D gone for now (will come back later done properly) -Create base rasterizer for RenderDevice, RasterizerRD
This commit is contained in:
parent
9ffe57a10e
commit
3f335ce3d4
287 changed files with 2829 additions and 2540 deletions
|
|
@ -54,7 +54,7 @@ void EditorPath::_add_children_to_popup(Object *p_obj, int p_depth) {
|
|||
if (!obj)
|
||||
continue;
|
||||
|
||||
Ref<Texture> icon = EditorNode::get_singleton()->get_object_icon(obj);
|
||||
Ref<Texture2D> icon = EditorNode::get_singleton()->get_object_icon(obj);
|
||||
|
||||
int index = get_popup()->get_item_count();
|
||||
get_popup()->add_icon_item(icon, E->get().name.capitalize(), objects.size());
|
||||
|
|
@ -90,7 +90,7 @@ void EditorPath::update_path() {
|
|||
if (!obj)
|
||||
continue;
|
||||
|
||||
Ref<Texture> icon = EditorNode::get_singleton()->get_object_icon(obj);
|
||||
Ref<Texture2D> icon = EditorNode::get_singleton()->get_object_icon(obj);
|
||||
if (icon.is_valid())
|
||||
set_icon(icon);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue