Commit Graph

284 Commits

Author SHA1 Message Date
rdb c00f3b18f5 direct: More reduction of reliance on builtins, mypy fixes 2023-10-11 11:07:56 +02:00
rdb b6eee1045a direct: Reduce dependence on builtins, satisfy mypy a bit more 2023-10-11 00:20:34 +02:00
WMOkiishi d1f4212acd direct: Utilize the built-in `sorted` function
Closes #1479
2023-08-02 08:37:51 +02:00
rdb 17e3f3331c directtools: Import cluster code only on demand
This prevents importing directtools modules also importing cluster code, which may fail to import with Panda builds that have net code disabled
2023-02-22 23:49:15 +01:00
rdb 37b5c9ad9e direct: More code style changes 2023-02-22 11:52:19 +01:00
rdb 9a15e9245c direct: Additional cleanup, update .pylintrc file 2023-02-22 02:44:53 +01:00
rdb 8b1126ba3e direct: General cleanup of Python code 2023-02-20 20:52:14 +01:00
WMOkiishi c7c70bc32a
direct: Cut down on usage of `import *` (#1454)
* Remove most `import *`s in `direct`

* Address feedback
2023-02-12 13:16:52 +00:00
rdb eefcae7b05 direct: Add `base.clock`, deprecate `globalClock` 2021-12-25 11:47:42 +01:00
rdb 3fe1780f16 direct: Fix use of various deprecated APIs 2021-03-09 19:21:26 +01:00
rdb 613441060b Merge branch 'release/1.10.x' 2021-01-18 23:47:36 +01:00
rdb ef6aa9d6ca directtools: Fix repeated selections causing scaling node to get huge
This appears to be a regression from 0fe56bd0a9, but I can't be sure.  Before this fix, repeated clicks of an object would cause the scaling handles to get larger and larger, until eventually causing NaN assertions.
2021-01-18 19:05:45 +01:00
rdb 842452594d Merge branch 'release/1.10.x' 2021-01-17 17:28:19 +01:00
rdb b3f0768656 Revert "directtools: Fix empty scaling node of object handle"
This reverts commit b507c88cd9.
2021-01-17 15:40:47 +01:00
rdb be9dde1eee direct: add .pylintrc, perform major code cleanup pass
Closes #989

Co-authored-by: Daniel Stokes <kupomail@gmail.com>
2020-12-31 01:36:23 +01:00
rdb cf60284ca9 Merge branch 'release/1.10.x' 2020-12-31 00:05:10 +01:00
rdb f7bd54b9ee directtools: Fix use of builtin direct instead of base.direct 2020-12-30 22:34:44 +01:00
rdb dee8df9427 Merge branch 'release/1.10.x' 2020-12-20 01:02:08 +01:00
rdb 7c676b5d26 directtools: Fix incorrect rounding for color conversion to hex
The color picker returns color values up to 255.99 so this can otherwise result in it returning a color like #100100100, and the hex code otherwise not matching with what is displayed in the color picker.
2020-12-19 15:27:23 +01:00
rdb ed397b3ab8 Merge branch 'release/1.10.x' 2020-12-09 17:59:37 +01:00
rdb 7b4ecbd60f directtools: Fix use of built-in direct instead of base.direct 2020-12-09 15:44:13 +01:00
Drew C 75fb0d3b50
More modern Direct Session UI
Parents it to the corners properly, and has a nicer look to it
2020-11-04 14:05:52 -05:00
rdb c788912070 Merge branch 'release/1.10.x' 2020-10-02 12:20:58 +02:00
Daniel b507c88cd9 directtools: Fix empty scaling node of object handle
Closes #1029
2020-10-02 12:16:10 +02:00
rdb d799a09002 cleanup: Remove support for EOL versions of Python
Fixes #905
2020-04-26 20:07:56 +02:00
fireclawthefox c395460390 directtools: Added missing imports
Closes #698
2019-08-03 09:40:11 +02:00
Sam Edwards aaeb925e84 directtools: Fix typo in DirectSelection 2018-02-23 15:50:50 -07:00
rdb d576c6b638 Improvements to generated API docs, especially in direct tree.
Also add an entry point for pfreeze.
2017-05-24 13:30:21 +02:00
fireclawthefox 8696dcea2c Fixed deprecated usage of NodePath.remove in directtools 2017-01-26 14:11:41 +01:00
rdb 23bf9ea5c7 The direct tree is now valid Python 2 *and* 3 2016-03-28 22:33:30 +02:00
mfwass f8837999ed Cleanup trailing whitespace 2015-12-13 10:08:41 -05:00
rdb 32367fcbdc Fix various import issues in the direct tree 2015-12-06 22:36:05 +01:00
rdb 50d2e8324e Merge branch 'release/1.9.x'
Conflicts:
	.travis.yml
	direct/src/directtools/DirectLights.py
	panda/src/nativenet/buffered_datagramconnection.h
2015-12-06 22:32:12 +01:00
rdb 287c44ce53 Various fixes for Python 3 versions before Python 3.3 2015-12-06 22:05:44 +01:00
rdb 31dbcae262 Deprecate many extension methods, make extension methods imported via modules instead of dumped into core.py, move _core.pyd and _direct.pyd back to core.pyd, direct.pyd respectively, move MAIN_DIR set-up code to module init time 2015-11-10 00:44:29 +01:00
rdb db3ab953e4 Remove ppremake, genPyCode, and all hacks created to support them 2015-11-09 19:06:49 +01:00
rdb d9342043b0 Deprecate pandac.PandaModules and genPyCode, move extensions to panda3d/, clean up imports and deprecated behaviour 2015-06-28 13:55:31 +02:00
rdb 4b1c4ff3c8 Fix use of deprecated NodePath.id() 2014-04-05 08:55:50 +00:00
rdb 88048bf3da Fix use of has_key and map() 2013-12-17 19:49:09 +00:00
Chris Brunner 98000eaac0 Fix for something that shouldn't have worked at all in the first place 2013-09-03 22:44:40 +00:00
David Rose 1fc2e4b35d replace old NodePath.lerp* calls with NodePath.*Interval equivalents 2012-02-15 21:27:46 +00:00
David Rose 50e53a4d4e better support for multiple windows, multiple trackballs, one camera 2012-01-13 00:22:05 +00:00
Chris Brunner a2b940d103 Remove excess whitespace 2011-10-19 20:00:44 +00:00
rdb 028c191887 don't rely on render being available at import time 2011-02-21 15:30:04 +00:00
Mike Christel b66a795efb Summer 2010 CMU ETC PandaLE team: (1) fixed bug that made things move in wrong directions when manipulated from an orthographic viewport; (2) added capability to show the manipulation widget in world space rather than the local space of the selected object; (3) added an option to show a separate scale widget rather than using control key to scale 2010-08-20 19:33:15 +00:00
Mike Christel 22e80168cb Summer 2010 CMU ETC PandaLE team: added an option to not switch the camera's movement direction below the zero plane 2010-08-20 19:32:08 +00:00
Mike Christel 2fefa6a0b8 Summer 2010 CMU ETC PandaLE team: added two functions addDisplayRegionContext and removeDisplayRegionContext to add and remove display regions on the fly 2010-08-20 19:31:24 +00:00
Shuying Feng be8dcd75cb Added curve editing feature 2010-06-17 00:22:35 +00:00
Gyedo Jeon d236032656 Added proper handling of camera rotation when the camera is underneath grid for new LE 2010-05-15 00:14:22 +00:00
Gyedo Jeon a01f540549 Added exception handling for no intersction at cursor position 2010-04-06 18:57:52 +00:00