1418 Commits

Author SHA1 Message Date
David Vierra
abe03a4301 Begin work on schematic browser 2015-01-21 14:26:39 -10:00
David Vierra
3d64f30df7 Remove stray log from viewAction work 2015-01-20 10:41:52 -10:00
David Vierra
54c4ffa8a1 Profile augmentEvent 2015-01-20 10:41:22 -10:00
David Vierra
7c46cfa7dd Force view redraw when center pos changes
Updates minimap when turning camera
2015-01-20 10:41:09 -10:00
David Vierra
66e941e1d5 Fix zero division in profilerui 2015-01-20 10:40:43 -10:00
David Vierra
ecd796df04 Reduce distance rayCast advances through chunks from 2000 to a more reasonable maxDistance * 4
Reduces lag when aiming at the sky
2015-01-20 10:40:33 -10:00
David Vierra
d94c07d8d4 Unify view actions to accept either mouse or keyboard bindings. Bindings are now saved to settings.
To do: Mouse wheel bindings, get rid of the second binding popup
2015-01-20 01:10:03 -10:00
David Vierra
908cdb3521 Event focus set on world view when session is opened. 2015-01-20 01:08:20 -10:00
David Vierra
31af4169b9 Put log file in user data folder 2015-01-19 23:04:10 -10:00
David Vierra
fe7e841c16 Put data folder in ./ instead of ./src/mcedit when running from source (xxx work on this) 2015-01-19 23:03:52 -10:00
David Vierra
49e88faec6 Disable tool shortcuts. Find out why they override view controls. 2015-01-13 15:41:32 -10:00
David Vierra
a1e3f48f58 Camera view has WASD controls (again) 2015-01-13 15:39:54 -10:00
David Vierra
474b7b18e1 WorldView doesn't update if centerPoint is called with the same value 2015-01-13 15:39:33 -10:00
David Vierra
a9744659c6 WorldView accepts keyboard focus 2015-01-13 15:39:21 -10:00
David Vierra
814fbfcfa4 More work on worldview keybinding editor - accepts keypresses including lone modifier keys 2015-01-13 15:38:41 -10:00
David Vierra
e2c81bec72 Add keypress action handlers to worldview 2015-01-13 15:37:00 -10:00
David Vierra
0f0c6a4536 Keep profiler enabled for now 2015-01-12 15:59:16 -10:00
David Vierra
73806f9fc0 SelectionScene is transparent again, now excludes air blocks using a composed selection 2015-01-12 01:04:32 -10:00
David Vierra
fb2ddf388c WorldView mouseover handles ChunkNotPresent more sensibly 2015-01-12 01:04:31 -10:00
David Vierra
cc8f475e2a ChunkGroupNode now implements containsChunkNode 2015-01-12 01:04:31 -10:00
David Vierra
72619a8483 readChunk now propagates ChunkNotPresent correctly 2015-01-12 01:04:30 -10:00
David Vierra
a1c6e32e64 Move chunkPositions and sectionPositions to SelectionBox
Now requires min/max cx/cy/cz to be implemented by subclasses
2015-01-12 01:04:30 -10:00
David Vierra
ecec87c7d0 VertexRenderNode no longer assumes anything about the enable state of GL_TEXTURE_2D on GL_TEXTURE0.
It still assumes GL_TEXTURE1 is enabled if lightcoords are present.
2015-01-12 01:04:30 -10:00
David Vierra
aeac1b1883 Camera view skips chunks outside the view distance (chunks that would be offered because the minimap loaded them) 2015-01-12 01:04:29 -10:00
David Vierra
ff17731cf8 iterateChunks has a radius parameter, not diameter 2015-01-12 01:04:29 -10:00
David Vierra
494c992fda Increase camera view distance, ensure view distance changes update the scene 2015-01-12 01:04:28 -10:00
David Vierra
3d8e524186 Add benchmark for SelectionScene 2015-01-12 01:04:28 -10:00
David Vierra
52b7261837 Add a few more profiler calls 2015-01-12 01:04:27 -10:00
David Vierra
8ad5823f06 Profiler widget shows time not taken by children in a "self" column, instead of as an (other) node.
Zero div error in ProfilerWidget
2015-01-12 01:04:24 -10:00
David Vierra
dbfdd44047 Render small selections immediately 2015-01-11 01:30:32 -10:00
David Vierra
641f0b338b Don't stupidly recalculate renderType lookup table for each section 2015-01-11 01:30:14 -10:00
David Vierra
af1b889f93 Profiler widget has alternating colors 2015-01-11 01:29:11 -10:00
David Vierra
9b458c3369 Remove some dead code 2015-01-11 01:28:54 -10:00
David Vierra
50425f384f Fix error when changing shape with no selection 2015-01-11 01:27:47 -10:00
David Vierra
bc3b1861c0 ShapeWidget buttons now toggle exclusively 2015-01-11 01:27:19 -10:00
David Vierra
eab84b737d Whoops, ZeroBox is actually used 2015-01-11 01:21:02 -10:00
David Vierra
68ea8b823b BoundingBox -> mceditlib.selection 2015-01-10 12:14:28 -10:00
David Vierra
44f601a641 Select tool creates shaped selections.
Move brush shapes to mceditlib.selection
BrushShapeWidget -> mcedit2.widgets.shapewidget.ShapeWidget
New class SelectionScene renders selections as opaque white cubes
Change text of resize/deselect history commands
BoundingBox compares against None without crashing, has sensible repr again
2015-01-10 11:55:19 -10:00
David Vierra
78ae05608f VertexArrayBuffer correctly computes its element offsets instead of using the weird guesses in rendering.slices 2015-01-10 11:19:42 -10:00
David Vierra
b743217870 Clear undo block before saving, adjust comments 2015-01-09 18:14:46 -10:00
David Vierra
85cf1808e2 Add property list to player editor (xxx still needs undo, so does chunk property editor) 2015-01-09 00:27:59 -10:00
David Vierra
1cf80795af Move tool moves "things" 2015-01-09 00:27:04 -10:00
David Vierra
b4e1c43f9a Multi-command paste and move operations - Start, Move, Finish are recorded in history
...and add some type info
2015-01-09 00:05:00 -10:00
David Vierra
98ff85b544 Move undo block logic to new class MCEUndoStack, change Edit menu to use stack-provided actions 2015-01-08 22:43:10 -10:00
David Vierra
dcc326fd2b Schematic adapter fakes Biomes array at the correct size 2015-01-08 22:41:57 -10:00
David Vierra
318c1b15da Add NBTUUIDAttr class, add UUID attribute to player ref 2015-01-08 22:41:37 -10:00
David Vierra
1d6b65f7cd Hide hovers when selection tool is inactive 2015-01-08 22:41:16 -10:00
David Vierra
993d348bfe Non-NBT chunk editor (is this really necessary) 2015-01-08 15:41:41 -10:00
David Vierra
a206ab5336 Player Tool is now a Panel 2015-01-08 14:59:44 -10:00
David Vierra
a83977da99 resourcePath finds stuff relative to parent dir of mcedit2 module (src/), not current dir
allows mcedit2 script to run from any dir in source installs
2015-01-06 18:58:06 -10:00