Commit Graph

19504 Commits

Author SHA1 Message Date
Campbell Barton
b078503058 imagewrap was using uninitialized vars from do_material_tex
found while looking into a different bug.
2009-09-24 12:27:20 +00:00
Brecht Van Lommel
be380138f1 Fix for panorama backwards compatibility not working correct. 2009-09-24 12:15:17 +00:00
Joshua Leung
24128d2e86 mingw - silencing the warnings about '#pragma' warnings being unrecognised or being ignored. This should still work fine for msvc, and other platforms though. 2009-09-24 11:46:17 +00:00
Campbell Barton
4aade8ad7e fix for [#19437] Console (Python): first run doesn't have the ">>>" 2009-09-24 11:37:33 +00:00
Brecht Van Lommel
300df49060 Fix #19446: merge operator needs to be undone twice, interface
was still doing undo pushes in cases it was not needed.
2009-09-24 10:46:52 +00:00
Benoit Bolsee
813f292fc9 3rd attempt to fix ssize_t problem in MSVC and mingw 2009-09-24 10:41:28 +00:00
Campbell Barton
f16d2b7eaa fix for middle mouse up events not working with modal keymaps (used for fly mode).
With mouse events event->val started as 0/1 for press/release but later the tweak function made LMB and RMB zero value into KM_RELEASE, somehow MMB didnt get used by the tweak function so was left at 0 and the modal keymap function failed when comparing MMB Mouse ups.

now initialize event->val as KM_PRESS/KM_RELEASE
2009-09-24 10:35:04 +00:00
Benoit Bolsee
71027be7f6 Fix more problem with mingw this time 2009-09-24 10:04:43 +00:00
Benoit Bolsee
3e59a88450 Fix compilation problem in Windows and update project files 2009-09-24 09:29:59 +00:00
Campbell Barton
b94ed5d7e4 - cmake/make/scons didnt define INTERNATIONAL when buidling blenfont
- BLF_lang_init used confusing IFDEF's, unlikely this was well tested. Split this into 3 functions for Apple/Win32/Unix, Unix uses BLI_gethome_folder(), cant test others, ideally they should use BLI_gethome_folder too but needs testing.
Possibly each os cant be made to use BLI_gethome_folder and the separate func's can be removed (please test).

- units, hectometers were displayed wrong.
2009-09-24 07:03:18 +00:00
Campbell Barton
20998fdcfa Use Shift+F for fly-mode (like 2.4x) rather then Any+F 2009-09-24 06:48:03 +00:00
Campbell Barton
0c68fe3a61 brush curve - use clamped values (0-1) for everything except sculpt which can have positive and negative values. 2009-09-24 01:32:23 +00:00
Martin Poirier
b82b50417c netrender: load balancer fixes, cancel all jobs button and small html interface changes 2009-09-23 21:46:29 +00:00
Guillermo S. Romero
6c79d757ac Initial sketch of file access wrappers.
It compiles but does nothing useful yet. The "//" comments are notes to 
remember what to do in each block.
2009-09-23 21:26:24 +00:00
Joshua Leung
6e941a728a 2 Anim Bugfixes:
* Loading old (2.4x) files with keyframes now inits them properly so that keyframes are tagged as normal keyframes not breakdowns

* TrackTo consraint was flagged wrongly for adding it with a target. This meant that the target didn't get set when using the Ctrl-Shift-C hotkey.
2009-09-23 13:09:09 +00:00
Nathan Letwory
ebbb4ad753 * fixes for compiling with scons/mingw when BF_DEBUG=1. Needs svn up in lib/windows, where I added necessary mingw libs. 2009-09-23 12:10:56 +00:00
Joshua Leung
762d3ad145 Some UI tweaks as listed by William
(http://wiki.blender.org/index.php/BlenderDev/Blender2.5/Todo/UserInterface)

* Removed panel docking. "It is too easy to do by accident when reordering panels, is very hard to control and use, and has no real benefit."

* Scoll bars have minimum size now, so that the 'thumb' doesn't disappear in long lists.
2009-09-23 11:49:12 +00:00
Campbell Barton
e2a7168e96 fly mode back as a modal operator view3d.fly
- access with the F key, Ctrl+Alt+F in editmode, View->Navigation menu
- camera, perspective & 4split (perspective view only)
- uses modal keymap, (same as 2.4x).
- bugfix since 2.4x, when flying upside down, turning left/right was inverted.
- bugfix for "Align Camera To View", was using deprecated v3d->ofs rather then rv3d->ofs, fixed for NDof fly too. checked v3d->ofs is only used in readfile.c

Todo
- Warping the cursor removed in 2.5, no way to place the cursor in the middle of the view.
- Adding keyframes while in flymode to record the path is missing.
- Not getting MMB mouse release events (used for pan). need to look into why.
2009-09-23 11:26:16 +00:00
Joshua Leung
9e110a6d00 A few quick bugfixes:
* Vertex Groups list now has a more normal length (2 rows by default)

* Copy vertex groups button now has an icon

* Pose Sliding tools now allow events which it doesn't process to pass through (i.e. zooming the view now works, and also moving around using the numpad works too)
2009-09-23 07:28:26 +00:00
Martin Poirier
efa757fd8d netrender. first draft of html master details. Just point a browser at the master's address and port, et voila. Gives a list of jobs and slaves and well as per frame status for each job and access to slave output logs per frame 2009-09-23 01:59:57 +00:00
Campbell Barton
d987003608 remove rna function convert_to_triface because it uses an internal editmesh function and only the OBJ exporter called this.
Converting to tri's on export isnt very important.
2009-09-23 01:35:45 +00:00
Matt Ebb
7b1e5f4d8e * Tweak to fix:
[#8358] Performance regression with raytraced refraction

Now shadows are only sampled once in reflections/refractions. For cases where this would be a problem (perfect specular reflection/refraction), the full OSA takes care of it.
2009-09-23 00:53:30 +00:00
Martin Poirier
930542540a Make edge slide a proper operator
Clean up a couple of things in transform (PET settings, custom data, ...)
2009-09-22 20:16:56 +00:00
Guillermo S. Romero
986f8a9ea3 SVN maintenance. 2009-09-22 19:09:04 +00:00
Joseph Eagar
a2b3650e92 fixed some edge slide issues 2009-09-22 18:47:28 +00:00
Campbell Barton
b4ef0c7d8d minor fixes for merge of soc-2009-kazanbas, rev23422
- Use CTX_data_main(C) over G.main
- no need to define object_type_items inline.
- rna_mesh.c - dynamic length array was commented out, not sure why this was needed. Povray and PLY scripts rely on faces having 3/4 verts rather then checking the 4th index is 0 (ok in C, not nice in py).
2009-09-22 17:50:29 +00:00
Arystanbek Dyussenov
abb49829ef Manual merge of soc-2009-kazanbas branch:
* copied I/O scripts
* copied, modified rna_*_api.c and rna_*.c

I/O scripts not working yet due to slight BPY differences and RNA changes. Will fix them later.

Not merged changes:

* C unit testing integration, because it is clumsy
* scons cross-compiling, can be merged easily later
2009-09-22 16:35:07 +00:00
Campbell Barton
d86864027d PyConsole improvements
- Commands from the history wont get modified in-place when you cycle back and re-use them.
- Ctrl Left/Right skip words.
- Autocompletion on a variable that has no alternatives adds a '.'
  'bpy' -> 'bpy.', generally more useful since autocomp again will give the members of bpy

also moved text_check_* functions into BKE_text.h for the console to access.
2009-09-22 16:23:46 +00:00
Joshua Leung
87f5f194bc 2.5 - Animation Tweaks
* delta-transforms for objects should work again. These were basically extra transforms that could get added on top of the values calculated from animation values.

* Added some skeleton code for fixing paths when some data needs to be renamed.
2009-09-22 11:45:30 +00:00
Campbell Barton
92145d5950 Changes to allow python to do redraws through the timer operator, a reliable way to test the overhead of the python api (printed to the consoel on exit).
- rename WM_OT_ten_timer to WM_OT_redraw_timer
- added iterations argument to run more then 10 times (10 is default still)
- use report api rather then always calling a popup directly.
- added a new test that draws every region without swapping.
- dont show the info popup when operators are called from python.
- operators called from python now print reports, useful with the interactive console.

 eg. 
>>> bpy.ops.wm.redraw_timer(type='DRAW_WIN', iterations=300)
Info: 300 x Draw Window: 4168.56 ms,  average: 13.8952
2009-09-22 09:12:39 +00:00
Joseph Eagar
3c8d34b94e fixed a crash in edge slide 2009-09-22 09:04:43 +00:00
Nathan Letwory
cea8e6b6ed * ensure mingw toolset is recognised properly for python debug when doing BF_DEBUG=1 2009-09-22 08:57:00 +00:00
Joseph Eagar
b1d4d75aab brought back edge slide. 2009-09-22 08:41:03 +00:00
Campbell Barton
7ead925ce4 - removed View3D->localview since it wasnt set on entering localview (making many tools fail, add objects for eg.), check localvd instead.
- Accent (`) key now sets all layers (like in 2.4x)
- added Alt+C keybinding for converting object types.
2009-09-22 04:40:16 +00:00
Joshua Leung
b55919069e 2.5 - Keyframe types are now preserved after inserting keyframes which would overwrite the existing keyframes 2009-09-22 01:27:48 +00:00
Brecht Van Lommel
9182dc3b8f Fix #19391: quiting BGE could give drawing errors. Blender now restores
the default OpenGL state after exiting the game engine, and also removed
settings the default state on start, since the game engine already does
this.
2009-09-21 21:37:19 +00:00
William Reynish
345169d1fb Updated some colors in node space and file browser to better match the color theme in 2.5. 2009-09-21 21:28:48 +00:00
Brecht Van Lommel
3448f675cb Fix #19427, problem in blenfont not computing the width of text correct,
particularly text including spaces. This gave some problems with placing
the cursor and selection, and clipping text inside buttons.
2009-09-21 21:26:04 +00:00
Brecht Van Lommel
d601a51e03 RNA: added a "factor" subtype next to "percentage", and only display
% sign for percentage assuming it is between 0-100, while factor is
for values 0-1.

Move collision setting absorption from modifier to collision settings,
was inconsistent to have it there as the only one, and made it have
range 0.0-1.0 instead of 0-100.
2009-09-21 21:19:58 +00:00
Brecht Van Lommel
862ddcc0c4 Fix part of #19307: modifier cage button not working as a toggle button. 2009-09-21 21:03:50 +00:00
Brecht Van Lommel
aae4335b9f Fix part of #19309: editing node vector input in a popup did
not keep it open after changing one of the buttons.
2009-09-21 20:50:11 +00:00
Thomas Dinges
a15ba4f35d * Wrong Property Range for Blur Size_Y. 2009-09-21 19:26:27 +00:00
Brecht Van Lommel
c8a977db78 Fix #19426: loop select with occlude background geometry did not
work after subdivide operator, needed a check for valid backbuf.
2009-09-21 17:32:25 +00:00
Brecht Van Lommel
fe27bb6dd4 Fix #19384: missing redraw when changing transform orientation. 2009-09-21 17:00:22 +00:00
Brecht Van Lommel
b49e4e7bcf Fix #19378: border render coordinates were not RNA wrapped. 2009-09-21 16:51:04 +00:00
Brecht Van Lommel
6117d9c6e2 Fix #19361: BGE keyboard sensor allowed to set mouse events
too, should only be keyboard events.
2009-09-21 16:39:07 +00:00
Thomas Dinges
04ec0ea190 2.5 Nodes:
* Wrapped Color Key and Blur Node.
* Nodes using RNA properties can be animated. You can now choose if the Nodes Window should be updated while animation playback too. (Timeline>Playback Menu)
2009-09-21 16:21:54 +00:00
Brecht Van Lommel
8141725342 Fix #19382: crash on uv edit stitch, tweaking limit property in tool area. 2009-09-21 16:08:38 +00:00
Martin Poirier
34a9f423f8 netrender: more load balancing rules 2009-09-21 16:01:31 +00:00
Brecht Van Lommel
1e63545a3b Second attempt at fixing #19335: holding down backspace in the
text editor creates squares on some systems. Based on info from
Martin, it appears the keymodifier is being set when it shouldn't.
I think this is happening become some systems may be generating
KM_PRESS events without a matching KM_RELEASE?

Also ignore ascii values 1-32 now instead of 14-32, not sure why
they were included now in 2.5 because they were not in 2.4, but
I don't see a reason to do it. This fixes squares when pressing
e.g. ctrl+b or ctrl+n.
2009-09-21 15:51:29 +00:00