1044 Commits

Author SHA1 Message Date
David Vierra
66a2222750 Add clone tool icon 2015-09-10 12:36:27 -10:00
David Vierra
41da9d2495 Double SpinSlider has a smaller singleStep 2015-09-10 12:00:14 -10:00
David Vierra
ce5ea422af Change Brightness slider to use the 'gamma' argument to generateLightmap 2015-09-10 11:57:51 -10:00
David Vierra
8a5bcd6dd2 Cleanup in Move tool 2015-09-10 01:20:19 -10:00
David Vierra
fcdc743cbc Absolutely terrible first draft of Clone tool.
It is a clone of the Move tool without the multiple imports and without clearing the area after copying.
2015-09-10 01:20:03 -10:00
David Vierra
b16918b320 Add info to logger in FillBlocksOperation 2015-09-09 23:00:38 -10:00
David Vierra
49a2fd5036 Update HeightMap using actual block opacity, and drop height correctly. 2015-09-09 23:00:22 -10:00
David Vierra
2484610888 Add note to resourcePath 2015-09-09 21:10:36 -10:00
David Vierra
c83382e010 Simplify expression in MoveFinishCommand 2015-09-09 21:10:26 -10:00
David Vierra
8d7c5e860f Extract CoordinateWidget to its own file 2015-09-09 21:10:12 -10:00
David Vierra
85972c7867 Use try...finally in SimpleRevisionCommand 2015-09-09 21:07:34 -10:00
David Vierra
71503baca8 Reformat 2015-09-09 12:36:22 -10:00
David Vierra
9ab9d12086 Add layer for rendering stored HeightMaps 2015-09-09 12:22:36 -10:00
David Vierra
4c8b548e74 Not all view layers are enabled on first run.
View layer toggles now respect DefaultVisibleLayers.
2015-09-09 12:22:17 -10:00
David Vierra
ef5fa310ab Adjust appearance of Version/ResourcePack buttons. 2015-09-08 12:11:30 -10:00
David Vierra
daf729eedb Copy-paste no longer clears previous selection. 2015-09-08 10:45:04 -10:00
David Vierra
66747461b5 Move tool no longer makes a copy immediately.
Now it creates a reference to the area to be moved and renders that instead.
2015-09-08 10:34:13 -10:00
David Vierra
555b316c2f SceneUpdateTask now considers the worldScene's bounds when accepting/rejecting chunks 2015-09-08 10:33:40 -10:00
David Vierra
3a57a77b62 WorldLoader accepts an optional list of chunks to load 2015-09-08 10:33:11 -10:00
David Vierra
9f571d2b1f Add logger for settings change, don't call setValue if no change. 2015-09-07 23:09:20 -10:00
David Vierra
92265cd600 Molest the logging module to make string formatting safer for unicode strings. 2015-09-07 23:08:43 -10:00
David Vierra
7c8d2d3717 Fix first change of settings value not triggering setting-changed signal.
The new value was mistakenly used as the default value.
2015-09-07 20:44:26 -10:00
David Vierra
5614e10744 Remove useless glGenerateMipmap check 2015-09-07 10:52:18 -10:00
David Vierra
e89e69e046 Merge pull request #154 from vorburger/patch-1
README.md Linux build instructions updated
2015-09-07 10:52:01 -10:00
Michael Vorburger
7cfb44d13b README.md Linux build instructions updated
Thank you guys for MCEdit - I was exploring it for use with kids for http://blog.tinkercad.com/2013/08/15/tinkercraft/
2015-09-07 09:47:14 +02:00
David Vierra
ffcbc3d52c Workaround for OverflowError
OverflowError results from Python `long` not converting to `QVariant` correctly.

Pass TAG_Long values through Qt models as `str` (eww).
2015-09-06 10:36:58 -10:00
David Vierra
6ccd462333 Remove implicit texture loading in Texture.bind()
Loading a texture during bind() may cause the glTexImage commands to be compiled into a display list. Not a great idea.
2015-09-06 08:46:48 -10:00
David Vierra
ca0dbc0523 BindTextureNode once again resets GL_TEXTURE matrix 2015-09-06 08:45:56 -10:00
David Vierra
63dfb0d628 Overhaul glutils.Texture
Texture no longer has a textureFunc callback. Instead, it has image, width, and height attributes.

Texture no longer calls glGenTexture on init; instead, this is deferred until load.

Texture gains a 'name' attribute, mostly used for logging.

TextureAtlas._lightTexture is now reloaded whenever TextureAtlas.dayTime or TextureAtlas.minBrightness is changed.

This commit does too many things and I will probably be punished for it.
2015-09-06 08:36:38 -10:00
David Vierra
9bc4a2fd11 Fix areaLights getting the wrong above/below sections. 2015-09-06 08:36:38 -10:00
David Vierra
d8a834c034 Fix blocklight/skylight values for fluid renderers 2015-09-06 08:36:37 -10:00
David Vierra
c2f46eed5e Avoid OverflowError in WorldListItemDelegate
OverflowError is caused by passing a namedtuple containing a `long` value through the PySide binding for QModelIndex.data. Only occurs on Linux, apparently.

Work around by calling WorldListModel.data directly.
2015-09-06 08:36:37 -10:00
David Vierra
edcc085e9a Move a profiler logger to DEBUG level 2015-09-06 08:36:36 -10:00
David Vierra
bb0e7b1b9d User data folder is no longer found relative to sys.argv[0]
For source checkouts from git, the data folder is in the checkout folder. Otherwise, it is in the user's home folder.
2015-09-06 08:36:36 -10:00
David Vierra
fc9c8b831c Pin some requirements.
These two both moved ahead and became incompatible with each other, and IPython 4 is incompatible with MCEdit.
2015-09-05 13:00:35 -10:00
David Vierra
ab538a3a7d Suppress a logger in skylight update 2015-09-05 10:53:46 -10:00
David Vierra
966aa9f7fb Clean up lightmap texture generating code 2015-09-05 10:45:03 -10:00
David Vierra
b586f5b6e2 View switching toolbar now has sliders for time-of-day and minimum brightness
These will modify the texture image for the block and sky lighting
2015-09-05 10:44:28 -10:00
David Vierra
31b411b75a SpinSlider now accepts floating-point values (mainly those between 0.0 and 1.0) 2015-09-05 10:43:23 -10:00
David Vierra
0cb359f11c Make custom traceback print_list compatible with standard tracebacks 2015-09-05 10:42:54 -10:00
David Vierra
ad301d77a8 '-debug' argument is no longer forwarded to OptionParser 2015-09-05 10:42:28 -10:00
David Vierra
fe50e3fa3d Biome renderer is now compatible with non-Biomes levels 2015-09-05 10:42:15 -10:00
David Vierra
8ac3afb8db copyBlocks now defaults to the "all" lighting update scheme 2015-09-05 10:41:12 -10:00
David Vierra
f7bed06003 Minor rename and refactor in copyBlocksIter 2015-09-05 10:40:46 -10:00
David Vierra
f13de9c6aa Heightmap update doesn't cache old heightmap, and scans entire columns
When the height drops, it scans the entire column to find the new height. Instead, it could only scan the portion of the column changed in the given coordinates, but I'm lazy.
2015-09-05 10:40:14 -10:00
David Vierra
703a9ec002 Fix wrong index order when selecting lighting updates during copy 2015-09-05 10:34:28 -10:00
David Vierra
3689f7b80a AnvilSection fills SkyLight with 15
Assumes that sections are created naturally from bottom to top with no gaps
2015-09-05 10:05:11 -10:00
David Vierra
f463e8d2bb copyBlocksIter yields progress info for relight operation 2015-09-05 10:04:44 -10:00
David Vierra
f046a1edaa updateLightsByCoord now respects hasLights attribute of dimension 2015-09-05 10:04:29 -10:00
David Vierra
21a719562e Fix swapped blocklight and skylight in modelmesh 2015-09-04 20:01:38 -10:00