Ian Thompson
bf0803c0c2
Added better grouping for text markers with a separate group field (instead of using flags). The lower two bytes of the group are used for python scripts while the upper two (or more) are reserved for internal grouping. Plenty either way.
2008-08-24 13:30:35 +00:00
Ian Thompson
d6a9f7f485
Made modification alert slightly less intrusive and added Ignore option.
2008-08-18 17:08:25 +00:00
Ian Thompson
e1ceab6ed6
Missed parentheses from except clause, has a whole different meaning.
2008-08-18 14:16:34 +00:00
Ian Thompson
d39cdd7aad
Moving the find panel caused some funky projection effect, introduced when I fixed the scrollbar. The scrollbar and panel now play nice.
2008-08-18 10:24:56 +00:00
Ian Thompson
7f30e5fdd2
Better class support with inheritance for text parsing.
2008-08-18 10:01:49 +00:00
Ian Thompson
e93151dc39
Fix for text area scrollbar drawing incorrectly
2008-08-17 10:10:25 +00:00
Ian Thompson
3a62928777
Fix for numeric var types creating an error.
2008-08-17 10:08:38 +00:00
Ian Thompson
5c2015fa89
Fix for fix. Forgot to check if markers exist before trying to clear. Oops
2008-08-17 09:46:47 +00:00
Ian Thompson
9b6dffad2d
Fixed problems with markers where Edit All did not behave the same for every marker and deleting selections that intersect markers did not remove the marker in all cases.
2008-08-16 20:31:38 +00:00
Ian Thompson
310a6e2179
Esc removes markers in stages. Temporary markers are removed first (if any) then other markers follow.
2008-08-16 14:38:08 +00:00
Ian Thompson
d1d1d2b870
Improvements to the base BPyTextPlugin module:
...
- Added a centralized function for resolving targets (aaa.bbb.ccc)
- Added documentation support for locally defined classes and methods
- The time taken to parse now dictates how long to use the cache before parsing again
- Other tweaks and comments and support for numeric var types
The text plugin scripts have been updated to make use of these features.
2008-08-15 23:14:22 +00:00
Ian Thompson
bda3e4f8e2
Merge from trunk 16031:16122
2008-08-15 00:00:27 +00:00
Martin Poirier
feb5e3a688
Add a function to join thread by index in the thread list.
...
This can be safely merged in trunk, in case anyone needs something like that.
2008-08-14 23:48:52 +00:00
Martin Poirier
db42038bcf
merging trunk 15964 -> 16116
2008-08-14 21:16:48 +00:00
Ian Thompson
4cec480338
Used the Python icon for the text plugin button and created an ON version.
2008-08-14 17:09:39 +00:00
Ian Thompson
7b1a2d5f3a
Got rid of the horrible blocking UI problems with Find and Replace by using a blockhandler panel. The panel is shown when find is invoked with Alt F (or from the menu). Successive presses of Alt F search again, while the panel is visible. Alt H does the same for replace. (Ctrl F and Ctrl H also work - more like other editors)
2008-08-14 16:22:25 +00:00
Campbell Barton
47c2271d67
Python API get/setObject update for Actuators. (SetParent, AddObject, Camera and TrackTo)
...
* bugfix for BGE python api - SetParent actuator getObject would segfault if the object was not set.
* Added utility function ConvertPythonToGameObject() that can take a GameObject, string or None and set the game object from this since it was being done in a number of places.
* allow setObject(None), since no object is valid for actuators, Python should be able to set this.
* added optional argument for getObject() so it returns the KX_GameObject rather then its name, would prefer this be default but it could break existing games.
2008-08-14 08:58:25 +00:00
Diego Borghetti
639f3e12a9
Last part of the svn release commit.
...
No need freeze, in a sec I merge both revision into
the 2.47 branch and tag it.
2008-08-14 06:42:52 +00:00
Diego Borghetti
ae3a875ad2
Part one of the 2.47 release commit
2008-08-14 06:33:19 +00:00
Campbell Barton
29668ba2d0
bugfix (good for 2.47) - 2 cases of returning Py_None without increfing it. this can crash blender.
2008-08-14 05:06:59 +00:00
Campbell Barton
3f2cb6e878
game engine python api
...
* removed macros that were not used much, some misleading.
* removed error string setting calls that overwrote the error set by PyArg_ParseTuple with a less useful one.
* use python macros Py_RETURN_NONE, Py_RETURN_TRUE, Py_RETURN_FALSE
2008-08-14 03:23:36 +00:00
Ian Thompson
6a5976a0f5
Added a Marker sub-menu to the Edit menu in the text space header.
2008-08-13 21:13:56 +00:00
Martin Poirier
715ca7cbf6
starting threading code for retarget
...
nothing working yet, will finish tomorrow at home
2008-08-13 20:33:57 +00:00
Martin Poirier
d2750f7bda
Snap menu header rewording, to make documentation clearer (there was "mode" and "snap mode").
...
This can and should be merged for 2.47, as the docs will use those wordings.
2008-08-13 17:38:38 +00:00
Ian Thompson
55438d9fe0
Small bug fix: Scripts were not being recompiled after an error, if the (auto-selected) erroneous text was simply deleted and the script re-run.
2008-08-13 17:29:51 +00:00
Ian Thompson
e2c42be829
PageUp/Down now moves the mouse cursor instead of just the view. Also added some other pops for when the cursor went off screen (click after horizontal scroll, undo, redo, etc.)
2008-08-13 12:20:49 +00:00
Brecht Van Lommel
d60025e95f
Bugfix: in the game engine, errors in a particular python script caused
...
somewhat random crashes, which I think was caused by the error print
using python objects that were freed too soon. Now it frees the dictionary
after the print.
2008-08-13 10:19:47 +00:00
Ian Thompson
5ade004592
Added a button to allow plug-ins to be enabled/disabled for each text space. It was confusing using the syntax button for both.
2008-08-12 22:12:24 +00:00
Martin Poirier
b30a925447
Add missing stuff in new scene code to properly init skeletor params properly.
...
Add sanity check on file load to fix old files (won't be merged in trunk).
2008-08-12 19:56:03 +00:00
Ian Thompson
65d0ef3e74
Speed improvements for reading text lines and the option to specify a range for Text.asLines([start[, end]]) Also some tweaks for the plug-in scripts and updates to pydocs.
2008-08-12 15:17:08 +00:00
Andre Susano Pinto
7af0643df7
New nearest_point_in_tri_surface function.. 50% faster
...
Results were verified against the old function
Non 2.47 fix
2008-08-12 13:30:17 +00:00
Campbell Barton
2345757746
raise an error when assigning properties to a game object that cant be converted. also use python apis functions for converting floats and int types (faster then PyArg_Parse)
2008-08-12 12:32:54 +00:00
Ian Thompson
0410775e2e
Rolled back on rev. 16039. Had problems with display, messages being blank and scripts not being recompiled in some cases. Needs more thought before committing.
2008-08-12 10:08:46 +00:00
Jens Ole Wund
ea134f8411
bdiego no 2.47 option for now
...
make soft bodies spawn threads on a mid level
use G.rt == 16 to switch to 'old style'
i am going to remove that G.rt switch if everyone is fine /* i do not intend to keep 2 versions of code up because of "BAD STYLE" */
so .. give feed back ..
2008-08-11 20:40:29 +00:00
Martin Poirier
d4f1a98219
Fix flipped arc caused by harmonic interpolation
2008-08-11 20:01:15 +00:00
Ken Hughes
7f3a2a4abe
Python API
...
----------
Added texture.offset and textute.gain attributes, to access parameters for Musgrove textures.
2008-08-11 19:06:30 +00:00
Ian Thompson
d90d413421
Suggestion list scrolling and selection made independent for easier use. Selections no longer move away from the cursor.
2008-08-11 11:10:16 +00:00
Matt Ebb
04b90467c3
* Fix for a bug zanqdo reported in IRC - transparent shadows were not
...
getting correct alpha when cast through node materials - in fact the
node tree wasn't being shaded at all.
2008-08-11 05:23:36 +00:00
Campbell Barton
f876930904
fix for [ #17365 ] PLY export script writes comment in invalid way
...
this is good for 2.47
2008-08-11 03:52:21 +00:00
Ian Thompson
a5d955632f
Added sys.path module search to BPyTextPlugin module and fixed IndentationError when parsing.
2008-08-10 17:00:25 +00:00
Ian Thompson
5dad154414
Fixed inconsistencies between the text plugins and them not suggesting when called from the menu.
2008-08-10 16:07:14 +00:00
Ian Thompson
fb3a42d0f9
Shift keys cancelled the suggestions list (missed from earlier event refactor)
2008-08-10 14:24:14 +00:00
Ian Thompson
6ba72d4550
Fixed saving to relative paths and made external modification messages more user friendly.
2008-08-10 12:02:33 +00:00
Joshua Leung
f3c138e131
Changed a few places where visibility for EditMode bones is tested, so that they now use a macro I introduced in the previous commit.
2008-08-10 03:39:09 +00:00
Joshua Leung
2fe31596e3
== Armature Editing Tweaks ==
...
* New Tool: Switch Direction
This tool switches the direction of selected bones in EditMode, and can be found under the Specials Menu (WKey). It also adjusts the parenting, so that continuous chains can still be linked.
* Bone Locking:
Removed Lock/Unlock functions from Specials menu, and moved this functionality under the Toggle/Set/Clear Bone Settings tools (Shift/Ctrl-Shift/Alt W respectively)
2008-08-10 03:10:07 +00:00
Campbell Barton
00c308391a
* Script to convert BDF pixel fonts into C++ files blender can read. - Amiga bitmap font example http://download.blender.org/ftp/incoming/bitmap.png
...
* BF_CONFIG was missing from SCons help menu.
2008-08-10 01:38:02 +00:00
Ken Hughes
295155b448
Python API
...
----------
Remove documentation for Render.EnableEdgeShift and Render.EnableEdgeAll methods, which are no longer in the API.
2008-08-09 22:24:12 +00:00
Martin Poirier
c1e9d25364
Fix bug caused by extranuous return in distance weight calculations (ignored the weighting parameter)
...
Extract constant for shape level matching
Go to lowest node with matching shape, instead of just lowest node (created bugs)
2008-08-09 19:39:31 +00:00
Ian Thompson
83bcb9deff
Python errors originating in the active text are now displayed at the top of the text area. Errors in other files/scripts still pop up a message as before and all errors are still printed to the console. This removes the need to switch to the console for local errors.
2008-08-09 18:11:40 +00:00
Ian Thompson
4c89ee7838
Line highlighting did not work for syntax errors.
2008-08-09 14:47:51 +00:00