1106 Commits

Author SHA1 Message Date
David Vierra
48241e047e import numpy ->np, cnp, internalize faces.py, add FaceInfo class to replace big tuples, precalculate element rotation matrix, write out matrix multiplies, use array initializers in getBlockFaceVertices 2015-03-05 00:08:50 -10:00
David Vierra
35eafa1c83 Strings should be unicode, as those from json data also are 2015-03-04 23:20:08 -10:00
David Vierra
ab70a16418 Add static types in cookQuads 2015-03-03 08:30:22 -10:00
David Vierra
f11115debf Cache results of npRotate 2015-03-03 08:30:22 -10:00
David Vierra
9901135218 Compute variant rotation matrix only once for a variant, instead of for each element face 2015-03-03 08:30:21 -10:00
David Vierra
d4aa2893f6 Add isList and isCompound to NBT tags, fix an earlier bad rename 2015-03-03 08:30:20 -10:00
David Vierra
69380c9546 Fold storeQuads into cookQuads to avoid calling it a billion times for the unknown blocks. Sacrifice the cookedModels dict for now. 2015-03-03 08:30:20 -10:00
David Vierra
ed75d29433 Enable profiling? 2015-03-03 08:30:19 -10:00
David Vierra
c7645997f2 Repair time_loadmodels after changes to minecraftinstall 2015-03-03 08:30:19 -10:00
David Vierra
08290cefa7 Multiple select block picker is now double column (needs checkboxes, better highlighting for left column) 2015-02-24 21:41:43 -10:00
David Vierra
ce2e67ffb2 Better entity stats in copyBlocks 2015-02-24 21:41:09 -10:00
David Vierra
d9606b9f95 Add selection menu with just "Select All" for now 2015-02-24 21:40:42 -10:00
David Vierra
5f83e9787b Fix entity box rendering by disabling textures 2015-02-18 19:12:54 -10:00
David Vierra
4d4dfb0fc7 Edit entity properly saves changes by connecting to nbtEditor.editMade (why???) 2015-02-18 19:12:40 -10:00
David Vierra
fadc81f3d3 Improve log message in block_fill 2015-02-18 19:12:09 -10:00
David Vierra
9f15c42984 Overhead view has camera vector 2015-02-18 19:11:58 -10:00
David Vierra
85ae144e6a Catch SessionLockLost when saving a world
Display a message and close the world.
2015-02-18 19:11:00 -10:00
David Vierra
fb64391a22 WorldEditorChunk now maintains a list of [Tile]EntityRefs instead of AnvilChunkData 2015-02-18 19:09:36 -10:00
David Vierra
e0f27e590b Allow findVersion1_8 to accept (1, 8, ".2") 2015-02-11 09:58:57 -10:00
David Vierra
8d416b763d Excepthook override needs the logging module to work, so setup logging first. 2015-02-11 04:48:10 -10:00
David Vierra
57f69916eb Mousewheel binding works, cutaway view shows view controls 2015-02-08 09:24:05 -10:00
David Vierra
97d4cb0e6a showProgress does eight iterations before showing the progress dialog 2015-02-08 09:23:34 -10:00
David Vierra
c8c577f63f Only warn about unusable installs when disabling them 2015-02-08 01:08:45 -10:00
David Vierra
a7436d7d34 Try to handle worlds that have no players 2015-02-06 21:43:09 -10:00
David Vierra
e17f7af634 findVersion1_8 doesn't take modded or prerelease versions 2015-02-06 21:30:35 -10:00
David Vierra
a7cf8b5853 Fix minecraft installs dialog not opening when no installs are found 2015-02-06 18:37:16 -10:00
David Vierra
9cd98a51e8 spacing 2015-02-06 18:35:50 -10:00
David Vierra
34d1e30273 Block picker allows ID:meta input 2015-02-04 23:05:55 -10:00
David Vierra
c82507d397 Add button to world list for choosing any world 2015-02-04 23:05:41 -10:00
David Vierra
5a105ad8e7 Show IDs in str(BlockType) 2015-02-04 23:05:13 -10:00
David Vierra
091a86931b ResourceLoader raises ResourceNotFound, log more info about resource loaders 2015-02-03 22:02:30 -10:00
David Vierra
98999645af Set currentImport after removing a pending import, do some cleanup... 2015-02-02 14:42:31 -10:00
David Vierra
699783ea74 use absolute import in modelmesh to quell 'missing import' warning 2015-02-02 14:16:48 -10:00
David Vierra
d93b3e8681 Changelog? 2015-02-02 14:16:48 -10:00
David Vierra
537e217904 Read version from version.txt, note how to run mcedit2.spec 2015-02-02 09:24:35 -10:00
David Vierra
b4683d53ea Return None for child items out of list/compound bounds - may be called when deleting the last item 2015-02-02 05:51:39 -10:00
David Vierra
eb89e9920d beginInsertRows doesn't update the view unless the parent index's column is 0 2015-02-02 05:50:14 -10:00
David Vierra
4087c9a7e5 internal pointers nonsense didn't solve anything 2015-02-02 05:49:56 -10:00
David Vierra
e075fabdd4 nbttreeview.py->nbteditor.py 2015-02-02 05:15:22 -10:00
David Vierra
817c3a2624 More work on NBT editor
Adding to Compounds is possible, showing a tag type menu.
Adding to an empty list uses the menu too
setModel changed to setRootTag
tries to keep tree expand state when model changes (e.g. due to revision change)

chunk editor treeView->nbtEditor
2015-02-01 19:12:21 -10:00
David Vierra
1361389187 Only emit revisionChanged if the revision actually changed 2015-02-01 19:09:24 -10:00
David Vierra
ad4ece211f Remove old terrain pngs (why are they even still here) 2015-02-01 03:46:10 -10:00
David Vierra
e07cc96ae5 NBT editor can add/remove from lists, displays root item as root instead of its children
NBTTreeView -> NBTEditorWidget
editor is a QWidget again
added add/remove buttons
expands first column when child is expanded
removed vertical borders from tree views
items have isCompound and isList
2015-02-01 03:32:38 -10:00
David Vierra
19a8c01f4f NBT tree allows value editing, Players list allows undo for NBT value changes, remove lines from tree branch icons for now 2015-02-01 01:59:30 -10:00
David Vierra
37943a08a5 Don't override model() 2015-01-30 18:56:14 -10:00
David Vierra
cae00bbb0d PropertyList correctly emits dataChanged 2015-01-30 18:55:24 -10:00
David Vierra
a2329f5da9 NBTTreeView now inherits QTreeView and is used in place of QTreeView in several places. 2015-01-30 18:55:14 -10:00
David Vierra
17c9256000 Set NBT tree view with correct proxy model (oops) 2015-01-30 17:54:53 -10:00
David Vierra
dfc497e5d2 Extract NBT property list widget from players tool, change it to use a model+view+delegate combo. 2015-01-30 17:39:00 -10:00
David Vierra
97baf0319d Fix arguments to rowCount 2015-01-30 17:38:24 -10:00