Fix box: zero size, and dragging a side past its opposite
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 50/100
Hướng nghiên cứu
The payload names no files, so start by finding the box generator in the Chisel codebase and the check that raises the brushMeshID error. Reproduce it in the Unity editor by sizing a box up and back down to zero height. Done means three things: a zero-size box cancels creation, dragging a side past its opposite gives a negative size with the sides swapped under the hood, and the brush stays valid.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problems when drawing a box:
-
Error at zero size while sizing. While building the outline (before the shape is committed), sizing the box upwards and then back downwards until its height is zero gives an error:
Brush with ID (Chisel.Core.CompactNodeID) has its brushMeshID set to (0), which is invalid. The brushMeshID is invalid: a Generator created/didn't update a TreeBrush correctly. -
A zero-sized box can be made. Finishing with a zero size should cancel the creation instead of making the box.
-
Dragging a side past its opposite moves the whole box. When a side is moved beyond the opposite side, the opposite side starts following the current position, so the entire box moves. Instead, the opposite side stays where it is and the box gets a negative size; the generator swaps its sides under the hood so the brush is valid.
Rule for all generators: negative sizes are allowed, and every generator builds a valid shape from them (swapping sides under the hood, so the brush is the right way out). A zero size is never allowed: creating at zero size cancels, and an existing generator can't be made zero sized.
Related: capsule (#185), cylinder (#186), inspector values (#187), hemisphere (#188), sphere (#189), extruded shape (#190), linear stairs (#191), spiral stairs (#192).
- Ngôn ngữ chính
- C#
- Star
- 135
- Fork
- 15
- Merge trung bình
- 24 phút
- Pull request đã merge (30 ngày)
- 112
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của RadicalCSG/com.chisel
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
RadicalCSG/com.chisel#221 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Finish stairsĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
RadicalCSG/com.chisel#224 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
RadicalCSG/com.chisel#223 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
RadicalCSG/com.chisel#222 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
RadicalCSG/com.chisel#220 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của RadicalCSG/com.chisel
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
NethermindEth/nethermind#15684 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area/ai-assistant squad/flyt
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
Altinn/altinn-studio#21798 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
arastella625/DAORework#181 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
BEagle1984/silverback#280 ·
-
bug P1
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
endercodezz/BYDLO#417 ·
Maintainer thường phản hồi trong vòng 1 ngày