Commit Graph

17302 Commits

Author SHA1 Message Date
e682febe24 fix for own bug in name flipping, was modifying the original name (very bad!). 2010-01-17 16:00:54 +00:00
e530431893 have makesrna only replace newly generated files when their contents changes.
previously changing one rna_*.c file would rebuild them all making it slow to test small changes on the rna api.

also made errors in rna and dna generated give C defined #error's and line numbers that cause them.
2010-01-17 14:04:40 +00:00
Dalai Felinto
e02ad764ee Text Editor: indent and unindent now supports tabs/spaces according to (text->flags & TXT_TABSTOSPACES).
Code-wise it looks now (again) that tab is the default. I hope that'ok. For bitwise operation it's cleaner IMO if the check is for positive values on them.

* TXT_TABSIZE is still harcoded to 4 spaces *
2010-01-17 03:15:27 +00:00
Dalai Felinto
a806cfb6a5 Test Editor fix: Ctrl+LEFT/RIGHT was set twice (one of them wrongly) 2010-01-17 02:10:54 +00:00
9c9209f7e5 resizing any area/region would redraw all views in every window.
This means a large scene will make blender resize the border between the timeline and the graph editor slow since it redraws the 3d view for each update.

edited the operators to only redraw whats needed. since tons away IFDEF'd this incse it needs to be reverted.
2010-01-16 22:56:52 +00:00
8c74944a8e debug prints are too much on my system it hangs ddd. 2010-01-16 22:53:05 +00:00
083e5b66a9 GPU_buffer_setup could return a freed buffer. (when VBO's were used) 2010-01-16 17:47:56 +00:00
70060b2936 fix for own un-initialized pointer 2010-01-16 15:39:00 +00:00
7bea39af62 Workaround to fix #20645. Iteration over multidim arrays and slicing of them is broken.
Before fixing this I'd like to clean BPY a bit.
2010-01-16 15:20:27 +00:00
459f55ed95 bugix [#20687] Selection code on duplis gets incorrect draw mode flag
could make selection very slow in some cases
2010-01-16 15:17:40 +00:00
6a8dc9bdec - UV header sync selection vert/edge/face buttons were displayed as 3 tickboxes
- fix for all of them being able to be disabled at once.
- 3D header now uses the rna buttons.
2010-01-16 14:31:21 +00:00
2ca119c66d possible fix for [#20674] SegFault from console 'c = data.texts["text1"].copy()'
fix for freeing the undo buffer from a copied text block. (the copy had the old undo pointer)

since I only got an error, not a segfault Im not sure this is the real cause of the crash.
2010-01-16 14:05:39 +00:00
Dalai Felinto
a33e12c184 Fix: MESH_OT_DELETE wasn't working since rev. 26027, MESH_OT_select_by_number_vertices neither
for the MESH_OT_select_...  ENUM text fix (s/Triangles/Quads) and invoke added (WM_menu_invoke).
2010-01-16 04:18:21 +00:00
03e924cdee mirror modifier vgroup option was doing string name conversion to find the flipped name for every vertex for every weight.
the vertex flip mapping only needs to be made once.

warning fixes too.
2010-01-16 01:15:47 +00:00
61acdb61cb Fix [#20418] ring select in face mode selects edges not faces 2010-01-16 00:59:59 +00:00
5272991e8b generic operator menu was searching for "type" and using the first enum property if it wasnt found.
this is too arbitrary and could break if roperty order is changed.
store the property in the operator type that is to be used for menu and enum search func's.

python function for searching operator enums on invoke. (just need dynamic python enums now)
 wm.invoke_search_popup(self)
2010-01-15 22:40:33 +00:00
2b3a6b38b7 remove duplicate code from operator/macro initialization 2010-01-15 22:02:32 +00:00
6d1f5f8f5d *Fix for last commit. Removed unused code. 2010-01-15 17:36:06 +00:00
ace8d45c1c - particle drawing was using invalid memory with weights.
- particle set weight operator (Shift + K) and from the menu.
- mirror vertex groups operator can also flip weight group names.

a number of utility functions for weight groups added
 int *get_defgroup_flip_map(struct Object *ob);
 void flip_vertexgroup_name (char *name_r, const char *name, int strip_number); // moved from modifier.c 
 void copy_defvert (struct MDeformVert *dvert_r, const struct MDeformVert *dvert);
 void flip_defvert (struct MDeformVert *dvert, int *flip_map);
2010-01-15 17:28:00 +00:00
a4732eefa5 a new generic invoke function - WM_enum_search_invoke()
This can search operators enum property.

Make proxy menu could easily get too big. use the new search popup.
2010-01-15 17:23:16 +00:00
2aaee044e5 fix for compiler error, probably unlikely but if 'v' is NULL it could crash. 2010-01-15 17:19:01 +00:00
1b580dde6e Console:
* Added Theme support for the console.
You can change:
-Header Color
-Text Color of Output, Input, Info and Error Messages. (Inside the User Preferences -> Themes)
2010-01-15 17:00:37 +00:00
39ff5d7eb9 Reverting changes made in r25940 with the NLA unmapping.
The reverted code was just blindly restoring the old state of the keyframes; changes to selection state, value changes, handle type, etc. were overridden, and the cases where keyframes were deliberately retimed or otherwise were also ignored.  

I'm not sure what problems these changes were meant to be solving, but will reassess the situation when I get more info on this.
2010-01-15 10:34:39 +00:00
0e8dd13c48 Fix [#20437] Impossible to load "voxel data" sequence file from
texture panel (field missing?)
2010-01-15 07:26:38 +00:00
Nathan Letwory
3664670f2a * Fix two issues:
- makesrna would crash on Windows with this malloc business (writing wrong places).
   - The one malloc never got freed (apart from not being MEM_callocN - which should be used instead of vanilla malloc/calloc!)
2010-01-15 07:04:00 +00:00
bd6ce45ef4 Fix [#20129] emulate numpad
Converted Command+LMB to send a RMB click event on Mac OS X, if Emulate 3 Button Mouse is switched on.


Also fixes for previous commit, didn't all go through.
2010-01-15 06:17:28 +00:00
87c5ed37a5 Tweaked/added poll functions to prevent operators that require
a 3D View from being used outside the 3D View (i.e. the info header 
search button)
2010-01-15 06:10:05 +00:00
01236d49f9 Transform Constraints: When axis is quasi perpendicular to the screen (within 5 degrees), it uses vertical motion of the mouse instead of normal axis projection. This behavior isn't new, but the 5 degrees limit is (it's also the limit at which manipulator axis disappear), it used to be much lower than that making small angles hard to manage. 2010-01-15 00:35:21 +00:00
4770cc031d fix for possible crash with the boundbox of a mesh used when freed. 2010-01-14 23:59:13 +00:00
Dalai Felinto
690ad15099 Text Editor: Add an option "Tabs as Spaces".
So now tab is not ALWAYS converted to spaces.
This is stored by text datablock (what allows to do nice things in the future, as automatic check for the indentation type of the file).

Ideally we should redraw the other Text Editor windows after changing that (in case the same file is opened and the Property panel is also open). Not sure how to do that though.

I'm using TABSTOSPACES as the DEFINE flag because TABSASSPACES sounds too ugly.

(also fix for interface divisor bug)
2010-01-14 21:30:51 +00:00
5d16a5b7d9 Ctrl+RMB select in the dope-sheet wasnt working, this nlabackup stuff isnt being done for select-all so not sure why its there, commented it out for now.
Aligorith, please check.
2010-01-14 20:48:25 +00:00
e9e89ecfc3 [#20672] TimeLine (arrows will not proceed animation)
RNA notifiers don't have a window and didn't get picked up correctly by the animation redraw system. If there's no window defined in a scene notifier, handle it anyway if the scene matches (or if there aren't any).
2010-01-14 19:53:26 +00:00
9e79f2d92a [#19978] Can not switch view with keymaps while emulate numpad is activated; in modes other than object and edit
Was caused by event emulation (numpad and mmb) happening separately at each level of the keymap, so brush selection was latching on the event before it had time to test emulated values with view navigation entries (at a lower level in the hierarchy).

After discussion with Matt, decided that event emulation should be done at the root of the event loop, replacing the event with the emulated values. This is much more predictable and more logical as far as event emulation goes.
2010-01-14 18:15:12 +00:00
be680ae69b Mkey toggles mask while in vertex/texture/weight paint mode.
remove unused operator property
2010-01-14 18:11:10 +00:00
6d4d43c85e improve volume preserving puff to shape the end strands of the hair in relation to the underlying form of the head. 2010-01-14 16:14:24 +00:00
97dc31c8d3 weight paint without shading when in wire view. use stipple wire to help show where verts are.
only way to do this previously was to have a UV layer, be in textured mode, not have any lights or textures and then set weight paint mode.
2010-01-14 12:51:17 +00:00
b0f87935a8 spelling errors, no real changes to code. 2010-01-14 10:59:42 +00:00
4371c3b044 no-functional change - use interpolation functions where possible. 2010-01-14 10:58:03 +00:00
dd59f4df90 Fix mistake in recent commit, typed in wrong number for bitflag
causing various issues with constraints and duplis.
2010-01-14 10:57:24 +00:00
fffbb2c7eb Fix [#20671] No access to creating textures for a material
Caused by my previous commit here.
2010-01-14 10:43:53 +00:00
e8c4be18a8 Fix [#20029] Text input fields with dropdown list bugs 2010-01-14 09:56:41 +00:00
6b0e2ecd6c enable smooth shading of particle colors in particle editmode, for weight painting and selection. 2010-01-14 09:01:57 +00:00
c1f2fd0a46 particle weight brush back (mostly the same as in 2.4x), needed to control long hairs movement. 2010-01-14 08:53:10 +00:00
72b14be460 * Added an 'enable manipulator' operator, with boolean properties for each of
translate/rotate/scale, for people to bind to shortcut keys.

wm.context_set doesn't work well here since it just toggles each component on/off.

Fixes [#19730] Missing/conflicting keymaps for "Change Manipulator Mode" function

Good defaults for this can be decided on for an updated 2.5 key layout.
2010-01-14 05:29:25 +00:00
109f719f46 ctrl +/- should be in default keymap for 3d view zoom in/out, probably other views too 2010-01-14 05:22:16 +00:00
b886f7ada0 Fix for previous properties editor crash, only remove ui handlers
on new screens. Was preventing openGL render and possibly other 
things from working
2010-01-14 05:21:20 +00:00
874ef4c747 Changed 3D View menu Duplicate Linked to use the same
duplicate linked + move macro as in the default key map (alt d).
2010-01-14 04:36:27 +00:00
e93d6655bd Fix [#19932] When reducing panels vertically the scrollbar should not continue redraw in
opposite direction
2010-01-14 04:16:45 +00:00
7d251de01c view3d bg image now updates on frame change, and the panel for it properly draws an image user template. someone else might want to look over the UI stuff, hopefully it's ok. also added some ffmpeg .dlls to the SConscript to install. 2010-01-14 02:16:45 +00:00
36229bd39a Missing notifiers in some transform orientations operators.
Also, nice harmless typo (only because KM_SHIFT|KM_CLICK (1|3) == KM_SHIFT|KM_CTRL (1|2))
2010-01-14 02:06:08 +00:00