Skip to content

Commit

Permalink
Hide removed cube faces
Browse files Browse the repository at this point in the history
Exclude removed cube faces from UV selection frame
Closes #2135
  • Loading branch information
JannisX11 committed Dec 4, 2023
1 parent 2ae9fc3 commit d5bf608
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/texturing/uv.js
Original file line number Diff line number Diff line change
Expand Up @@ -3155,7 +3155,7 @@ Interface.definePanels(function() {
let max = [0, 0];
this.selected_faces.forEach(fkey => {
this.mappable_elements.forEach(element => {
if (!element.faces[fkey]) return;
if (!element.faces[fkey] || element.faces[fkey].texture === null) return;

let face = element.faces[fkey];
if (element instanceof Cube) {
Expand Down Expand Up @@ -3764,7 +3764,7 @@ Interface.definePanels(function() {
<template v-if="element.type == 'cube' && !element.box_uv">
<div class="cube_uv_face"
v-for="(face, key) in element.faces" :key="element.uuid + ':' + key"
v-if="(face.getTexture() == texture || texture == 0) && (display_uv !== 'selected_faces' || selected_faces.includes(key))"
v-if="(face.getTexture() == texture || texture == 0) && face.texture !== null && (display_uv !== 'selected_faces' || selected_faces.includes(key))"
:title="face_names[key]"
:class="{selected: selected_faces.includes(key), unselected: display_uv === 'all_elements' && !mappable_elements.includes(element)}"
@mousedown.prevent="dragFace(key, $event)"
Expand Down

0 comments on commit d5bf608

Please sign in to comment.