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
|
|
@ -205,7 +205,7 @@ void EditorPropertyRootMotion::update_property() {
|
|||
|
||||
assign->set_tooltip(p);
|
||||
if (p == NodePath()) {
|
||||
assign->set_icon(Ref<Texture>());
|
||||
assign->set_icon(Ref<Texture2D>());
|
||||
assign->set_text(TTR("Assign..."));
|
||||
assign->set_flat(false);
|
||||
return;
|
||||
|
|
@ -222,7 +222,7 @@ void EditorPropertyRootMotion::update_property() {
|
|||
}
|
||||
|
||||
if (!base_node || !base_node->has_node(p)) {
|
||||
assign->set_icon(Ref<Texture>());
|
||||
assign->set_icon(Ref<Texture2D>());
|
||||
assign->set_text(p);
|
||||
return;
|
||||
}
|
||||
|
|
@ -242,7 +242,7 @@ void EditorPropertyRootMotion::setup(const NodePath &p_base_hint) {
|
|||
void EditorPropertyRootMotion::_notification(int p_what) {
|
||||
|
||||
if (p_what == NOTIFICATION_ENTER_TREE || p_what == NOTIFICATION_THEME_CHANGED) {
|
||||
Ref<Texture> t = get_icon("Clear", "EditorIcons");
|
||||
Ref<Texture2D> t = get_icon("Clear", "EditorIcons");
|
||||
clear->set_icon(t);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue