mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-20 11:34:57 +01:00
Merge pull request #314 from miloszunio/pr/ground-ray
fix(editor): the points of the terrain tools put on the ground along the ray through the cursor in this frame
This commit is contained in:
@@ -677,6 +677,13 @@ class editor_mode : public application_mode, private editor_track::observer, pri
|
||||
return m_terrain_tool == terrain_tool::sculpt || m_terrain_tool == terrain_tool::smooth || m_terrain_tool == terrain_tool::level || m_terrain_tool == terrain_tool::paint ||
|
||||
m_terrain_tool == terrain_tool::restore;
|
||||
}
|
||||
// the point of the ground of the terrain under the cursor, found along the ray through the cursor, so it's found also over
|
||||
// a hole and behind the grass. returns: false if the ray meets no terrain
|
||||
bool terrain_cursor(glm::dvec3 &World) const;
|
||||
// the point of the ground under the cursor in this frame, for the points put on the ground (outlines, areas, brushes): along the ray
|
||||
// through the cursor to the terrain; the depth read back (a frame late, and stopped by the models over the ground) only where
|
||||
// there's none. false: nothing under the cursor
|
||||
bool cursor_on_ground(glm::dvec3 &World);
|
||||
// converts the point spacing of the selected chunks to m_terrain_convert_spacing
|
||||
void convert_selected_chunks();
|
||||
// the chunks selected with the spacing tool taken out of the terrain, in one step of the history
|
||||
|
||||
Reference in New Issue
Block a user